Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kolya committed Oct 12, 2008
1 parent f73b812 commit 289bbef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions lapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 289bbef

Please sign in to comment.