summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'console.c')
-rw-r--r--console.c3
1 files changed, 2 insertions, 1 deletions
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");