Fix spurious panics on RISC-V keystrokes
authorAndrew Waterman <waterman@cs.berkeley.edu>
Wed, 27 Mar 2013 23:42:25 +0000 (16:42 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Wed, 27 Mar 2013 23:42:25 +0000 (16:42 -0700)
kern/arch/riscv/trap.c

index a1273f0..efa00f2 100644 (file)
@@ -133,6 +133,7 @@ static void handle_host_interrupt(trapframe_t* tf)
        uintptr_t fh = mtpcr(PCR_FROMHOST, 0);
        switch (fh >> 56)
        {
+         case 0x00: return;
          case 0x01: handle_keypress(fh); return;
          default: assert(0);
        }