projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history]
/
lib
/
libc
/
i386
/
sys
/
syscall.s
diff --git
a/lib/libc/i386/sys/syscall.s
b/lib/libc/i386/sys/syscall.s
index
c9868cf
..
3227493
100644
(file)
--- a/
lib/libc/i386/sys/syscall.s
+++ b/
lib/libc/i386/sys/syscall.s
@@
-45,6
+45,8
@@
ENTRY(syscall)
pop %eax /* syscall number */
push %ecx
LCALL(7,0)
pop %eax /* syscall number */
push %ecx
LCALL(7,0)
+ push %ecx /* need to push a word to keep stack frame intact
+ upon return; the word must be the return address. */
jb 1f
ret
1:
jb 1f
ret
1: