From: Ben Pfaff Date: Sun, 19 Sep 2004 07:07:19 +0000 (+0000) Subject: Syscall handler doesn't expect to see return address on stack, X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f7c2027a5ad53ab7875eeb1d12057b0ed8ccb20;p=pintos-anon Syscall handler doesn't expect to see return address on stack, so pop it off before invoking interrupt. --- diff --git a/src/lib/user/syscall-stub.S b/src/lib/user/syscall-stub.S index 27e6b20..e71afd5 100644 --- a/src/lib/user/syscall-stub.S +++ b/src/lib/user/syscall-stub.S @@ -1,4 +1,5 @@ .globl syscall syscall: + popl %ecx int $0x30 - retl + jmpl *%ecx