diff options
author | Robert Morris <[email protected]> | 2020-08-28 05:51:48 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2020-08-28 09:00:41 -0400 |
commit | 490f91ab53e22d90afb1ee37d5148e341ccf538e (patch) | |
tree | 68ce72ea0b6bbb8c375e2506d9d6618f1ba8fd08 /kernel/console.c | |
parent | 748809e1b36cd08b21ddfdf79486787cc5c85453 (diff) | |
download | xv6-labs-490f91ab53e22d90afb1ee37d5148e341ccf538e.tar.gz xv6-labs-490f91ab53e22d90afb1ee37d5148e341ccf538e.tar.bz2 xv6-labs-490f91ab53e22d90afb1ee37d5148e341ccf538e.zip |
move panicked check to uart.c
Diffstat (limited to 'kernel/console.c')
-rw-r--r-- | kernel/console.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/kernel/console.c b/kernel/console.c index 1885593..d606ed2 100644 --- a/kernel/console.c +++ b/kernel/console.c @@ -33,13 +33,6 @@ void consputc(int c) { - extern volatile int panicked; // from printf.c - - if(panicked){ - for(;;) - ; - } - if(c == BACKSPACE){ // if the user typed backspace, overwrite with a space. uartputc_sync('\b'); uartputc_sync(' '); uartputc_sync('\b'); @@ -66,12 +59,6 @@ int consolewrite(int user_src, uint64 src, int n) { int i; - extern volatile int panicked; // from printf.c - - if(panicked){ - for(;;) - ; - } acquire(&cons.lock); for(i = 0; i < n; i++){ |