Skip to content
Snippets Groups Projects
Commit 289bbef7 authored by kolya's avatar kolya
Browse files

minor cleanup

parent f73b8120
No related branches found
No related tags found
No related merge requests found
......@@ -290,7 +290,7 @@ panic(char *s)
int i;
uint pcs[10];
__asm __volatile("cli");
cli();
use_console_lock = 0;
cprintf("cpu%d: panic: ", cpu());
cprintf(s);
......
......@@ -97,8 +97,8 @@ cpu(void)
// Cannot call cpu when interrupts are enabled:
// result not guaranteed to last long enough to be used!
// Would prefer to panic but even printing is chancy here:
// everything, including cprintf, calls cpu, at least indirectly
// through acquire and release.
// almost everything, including cprintf and panic, calls cpu,
// often indirectly through acquire and release.
if(read_eflags()&FL_IF){
static int n;
if(n++ == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment