summaryrefslogtreecommitdiff
path: root/trap.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2018-10-09 14:28:54 -0400
committerFrans Kaashoek <[email protected]>2018-10-09 14:28:54 -0400
commit54e6f829e4019e10734588b9ba63c2c186c94f8e (patch)
treec4fae7ef568183e9566d69fb6f563c218c12819b /trap.c
parentf241e67d911d790376de26698f8bf8ba02550212 (diff)
downloadxv6-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.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/trap.c b/trap.c
index afa0e18..4c58cb2 100644
--- a/trap.c
+++ b/trap.c
@@ -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){