[Glibc-bsd-commits] r4427 - trunk/glibc-ports/kfreebsd/x86_64
Petr Salinger
ps-guest at alioth.debian.org
Fri May 10 15:27:34 UTC 2013
Author: ps-guest
Date: 2013-05-10 15:27:34 +0000 (Fri, 10 May 2013)
New Revision: 4427
Modified:
trunk/glibc-ports/kfreebsd/x86_64/makecontext.S
Log:
when uc_link is NULL, clear return value
Modified: trunk/glibc-ports/kfreebsd/x86_64/makecontext.S
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/makecontext.S 2013-05-10 04:43:44 UTC (rev 4426)
+++ trunk/glibc-ports/kfreebsd/x86_64/makecontext.S 2013-05-10 15:27:34 UTC (rev 4427)
@@ -127,16 +127,16 @@
- exit will call _exit in near future
*/
+ movq %rbx, %rdi /* argument for either syscall */
testq %rbx, %rbx /* If it is zero exit. */
jz 2f
- movq %rbx, %rdi
call JUMPTARGET(__setcontext)
/* If this returns (which can happen if the syscall fails) we'll
exit the program with the return error value (-1). */
-2: movq %rax, %rdi
- call HIDDEN_JUMPTARGET(exit)
+ movq %rax, %rdi
+2: call HIDDEN_JUMPTARGET(exit)
/* The 'exit' call should never return. In case it does cause
the process to terminate. */
hlt
More information about the Glibc-bsd-commits
mailing list