projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5a08d7
)
Syscall handler doesn't expect to see return address on stack,
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 19 Sep 2004 07:07:19 +0000
(07:07 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 19 Sep 2004 07:07:19 +0000
(07:07 +0000)
so pop it off before invoking interrupt.
src/lib/user/syscall-stub.S
patch
|
blob
|
history
diff --git
a/src/lib/user/syscall-stub.S
b/src/lib/user/syscall-stub.S
index 27e6b2048d4c61b33b5433117dcd57e5fff73024..e71afd5b1b9544b619f33692d3d57828300443c6 100644
(file)
--- 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