diff options
author | Robert Morris <[email protected]> | 2019-06-03 14:13:07 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2019-06-03 14:13:07 -0400 |
commit | a9c1a6f742886a9d45e5c625cf4f9b1b5c7a8cc4 (patch) | |
tree | ff50c8aa95dbdc5f35954e586933ad63676c69c4 /proc.c | |
parent | 50cbc7510250a64674d619d13f5912edf08b767d (diff) | |
download | xv6-labs-a9c1a6f742886a9d45e5c625cf4f9b1b5c7a8cc4.tar.gz xv6-labs-a9c1a6f742886a9d45e5c625cf4f9b1b5c7a8cc4.tar.bz2 xv6-labs-a9c1a6f742886a9d45e5c625cf4f9b1b5c7a8cc4.zip |
takes one uart input interrupt, then panics
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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); |