diff options
| author | rsc <rsc> | 2006-07-17 01:25:22 +0000 |
|---|---|---|
| committer | rsc <rsc> | 2006-07-17 01:25:22 +0000 |
| commit | c54c79267fd4c3404000b3c545c428209e4d8a3d (patch) | |
| tree | 575779df60f79558c183f08646f77fdf39f6bad8 /console.c | |
| parent | 564f787e916392af7b1960d079abf110234305d4 (diff) | |
| download | xv6-labs-2022-c54c79267fd4c3404000b3c545c428209e4d8a3d.tar.xz xv6-labs-2022-c54c79267fd4c3404000b3c545c428209e4d8a3d.zip | |
nitpicks
Diffstat (limited to 'console.c')
| -rw-r--r-- | console.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4,7 +4,7 @@ #include "spinlock.h" struct spinlock console_lock; -int paniced = 0; +int panicked = 0; int use_console_lock = 0; /* @@ -31,9 +31,9 @@ real_cons_putc(int c) unsigned short *crt = (unsigned short *) 0xB8000; // base of CGA memory int ind; - if(paniced){ + if(panicked){ cli(); - while(1) + for(;;) ; } @@ -161,7 +161,7 @@ panic(char *s) cprintf("panic: "); cprintf(s, 0); cprintf("\n", 0); - paniced = 1; // freeze other CPU - while(1) + panicked = 1; // freeze other CPU + for(;;) ; } |
