diff src/console.c @ 30:6a7ab1d7001c

fix
author mir3636
date Fri, 18 Jan 2019 11:50:48 +0900
parents a672d603ccb2
children 96a5833d0d82
line wrap: on
line diff
--- a/src/console.c	Fri Jan 18 10:04:37 2019 +0900
+++ b/src/console.c	Fri Jan 18 11:50:48 2019 +0900
@@ -118,6 +118,21 @@
     }
 }
 
+__code cbc_panic (char *s)
+{
+    cli();
+
+    cons.locking = 0;
+
+    cprintf("cpu%d: panic: ", cpu->id);
+
+    show_callstk(s);
+    panicked = 1; // freeze other CPU
+
+    while (1)
+        ;
+}
+
 void panic (char *s)
 {
     cli();