From 490f91ab53e22d90afb1ee37d5148e341ccf538e Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Fri, 28 Aug 2020 05:51:48 -0400 Subject: move panicked check to uart.c --- kernel/console.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'kernel/console.c') 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++){ -- cgit v1.2.3