diff options
author | kaashoek <kaashoek> | 2006-08-25 00:43:17 +0000 |
---|---|---|
committer | kaashoek <kaashoek> | 2006-08-25 00:43:17 +0000 |
commit | 74493bf4460f4024e06760289735e9d5dcb9dc3f (patch) | |
tree | 57beb4206294c5ae4c10569eac1333470b212a68 /trap.c | |
parent | 81d521999844f1dfa9c419463bbb8e355817062a (diff) | |
download | xv6-labs-74493bf4460f4024e06760289735e9d5dcb9dc3f.tar.gz xv6-labs-74493bf4460f4024e06760289735e9d5dcb9dc3f.tar.bz2 xv6-labs-74493bf4460f4024e06760289735e9d5dcb9dc3f.zip |
kill user process when it generates an unhandled trap (e.g., 13)
fix bug in test code of malloc
Diffstat (limited to 'trap.c')
-rw-r--r-- | trap.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -126,8 +126,10 @@ trap(struct trapframe *tf) } cprintf("trap %d from cpu %d eip %x\n", v, cpu(), tf->eip); - if(curproc[cpu()]) + if(curproc[cpu()]) { cprintf("pid %d\n", curproc[cpu()]->pid); + proc_exit(); + } // panic("trap"); return; |