* fork.cc (frok::child): Change order of cleanup prior to return.

(fork): Save more of the stack.
* gendef: Fix some comments.
* sigproc.cc (wait_sig): Clarify debug output.
This commit is contained in:
Christopher Faylor
2005-10-29 15:19:34 +00:00
parent c85263884a
commit f02b22dcee
4 changed files with 18 additions and 7 deletions

View File

@ -114,7 +114,7 @@ __sigfe:
.global __sigbe
.stabs "_sigbe:F(0,1)",36,0,0,__sigbe
__sigbe: # return here after cygwin syscall
__sigbe: # return here after cygwin syscall
pushl %edx
pushl %ebx
pushl %eax # don't clobber
@ -131,7 +131,7 @@ __sigbe: # return here after cygwin syscall
xadd %eax,$tls::stackptr(%ebx) # and get pointer
xorl %edx,%edx
xchgl %edx,-4(%eax) # get return address from signal stack
xchgl %edx,8(%esp) # restore ebx/real return address
xchgl %edx,8(%esp) # restore edx/real return address
decl $tls::incyg(%ebx)
decl $tls::stacklock(%ebx) # release lock
popl %eax