comparison src/console.c @ 30:6a7ab1d7001c

fix
author mir3636
date Fri, 18 Jan 2019 11:50:48 +0900
parents a672d603ccb2
children 96a5833d0d82
comparison
equal deleted inserted replaced
29:a672d603ccb2 30:6a7ab1d7001c
116 if (locking) { 116 if (locking) {
117 release(&cons.lock); 117 release(&cons.lock);
118 } 118 }
119 } 119 }
120 120
121 __code cbc_panic (char *s)
122 {
123 cli();
124
125 cons.locking = 0;
126
127 cprintf("cpu%d: panic: ", cpu->id);
128
129 show_callstk(s);
130 panicked = 1; // freeze other CPU
131
132 while (1)
133 ;
134 }
135
121 void panic (char *s) 136 void panic (char *s)
122 { 137 {
123 cli(); 138 cli();
124 139
125 cons.locking = 0; 140 cons.locking = 0;