diff options
author | Frans Kaashoek <[email protected]> | 2018-10-09 14:28:54 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2018-10-09 14:28:54 -0400 |
commit | 54e6f829e4019e10734588b9ba63c2c186c94f8e (patch) | |
tree | c4fae7ef568183e9566d69fb6f563c218c12819b /trap.c | |
parent | f241e67d911d790376de26698f8bf8ba02550212 (diff) | |
download | xv6-labs-54e6f829e4019e10734588b9ba63c2c186c94f8e.tar.gz xv6-labs-54e6f829e4019e10734588b9ba63c2c186c94f8e.tar.bz2 xv6-labs-54e6f829e4019e10734588b9ba63c2c186c94f8e.zip |
Separate system call path from trap path. Passes usertests on 1 and 2 cpus.
Diffstat (limited to 'trap.c')
-rw-r--r-- | trap.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -41,16 +41,6 @@ idtinit(void) void trap(struct trapframe *tf) { - if(tf->trapno == T_SYSCALL){ - if(myproc()->killed) - exit(); - myproc()->tf = tf; - syscall(); - if(myproc()->killed) - exit(); - return; - } - switch(tf->trapno){ case T_IRQ0 + IRQ_TIMER: if(cpuid() == 0){ |