From a9c1a6f742886a9d45e5c625cf4f9b1b5c7a8cc4 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Mon, 3 Jun 2019 14:13:07 -0400 Subject: takes one uart input interrupt, then panics --- proc.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'proc.c') diff --git a/proc.c b/proc.c index 909b88d..36b767d 100644 --- a/proc.c +++ b/proc.c @@ -365,6 +365,22 @@ scheduler(void) // Enable interrupts on this processor. // XXX riscv //sti(); + + if(0){ uint x = * (uint*) 0xc001000; + if(x != 0){ + printf("pending %x\n", x); + } + x = *(uint*)0xc001004; + if(x != 0) + printf("pending %x\n", x); + } + + if(0){ + uint uartgetc(void); + uint x = uartgetc(); + if(x != 0) + printf("%x ", x); + } // Loop over process table looking for process to run. acquire(&ptable.lock); -- cgit v1.2.3