From 5eb1cb49722cce9afee48886a8db138d5f58d0ff Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Wed, 5 Jun 2019 14:14:57 -0400 Subject: push_off() and pop_off() in myproc() --- console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'console.c') diff --git a/console.c b/console.c index 122ccb3..ca20842 100644 --- a/console.c +++ b/console.c @@ -17,7 +17,7 @@ static void consputc(int); -static int panicked = 0; +static volatile int panicked = 0; static struct { struct spinlock lock; @@ -120,6 +120,7 @@ printf(char *fmt, ...) void panic(char *s) { + cons.locking = 0; printf("panic: "); printf(s); printf("\n"); -- cgit v1.2.3