This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / lib / libc / i386 / sys / syscall.s
index c9868cf..3227493 100644 (file)
@@ -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: