From 54e6f829e4019e10734588b9ba63c2c186c94f8e Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Tue, 9 Oct 2018 14:28:54 -0400 Subject: Separate system call path from trap path. Passes usertests on 1 and 2 cpus. --- trap.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'trap.c') 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){ -- cgit v1.2.3