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=63d1fcb70a9a277c64b7096336c887dafc903774;hp=b1a18e3872d52fcfe598b1e0e0d6698408960ce4;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