Permalink
Browse files

lab7

  • Loading branch information...
1 parent 06d9a2f commit c36354b7babb9f781cd317872e8106f2634e9b86 @wh5a committed Jun 12, 2010
Showing with 7 additions and 2 deletions.
  1. +1 −1 fs/serv.c
  2. +6 −1 kern/trap.c
View
@@ -124,7 +124,7 @@ serve_open(envid_t envid, struct Fsreq_open *rq)
if (debug)
cprintf("sending success, page %08x\n", (uintptr_t) o->o_fd);
- ipc_send(envid, 0, o->o_fd, PTE_P|PTE_U|PTE_W);
+ ipc_send(envid, 0, o->o_fd, PTE_P|PTE_U|PTE_W|PTE_SHARE);
return;
out:
ipc_send(envid, r, 0, 0);
View
@@ -166,7 +166,12 @@ trap_dispatch(struct Trapframe *tf)
return;
//// Lab 7: Handle keyboard interrupts.
-
+ case IRQ_OFFSET + IRQ_KBD:
+ kbd_intr();
+ return;
+ case IRQ_OFFSET + IRQ_SERIAL:
+ serial_intr();
+ return;
default:
if (tf->tf_trapno == IRQ_OFFSET + e100_irq) {

0 comments on commit c36354b

Please sign in to comment.