mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
SH: makecontext: exit (0) if uc_link is the null pointer.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2012-07-17 Thomas Schwinge <thomas@codesourcery.com>
|
2012-07-17 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
|
||||||
|
zero value for regular exit case.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/x86_64/__start_context.S
|
* sysdeps/unix/sysv/linux/x86_64/__start_context.S
|
||||||
(__start_context): Preserve zero value for regular exit case.
|
(__start_context): Preserve zero value for regular exit case.
|
||||||
|
|
||||||
|
@ -128,6 +128,7 @@ ENTRY(__makecontext)
|
|||||||
cfi_restore (pr)
|
cfi_restore (pr)
|
||||||
/* If this returns (which can happen if the syscall fails) we'll exit
|
/* If this returns (which can happen if the syscall fails) we'll exit
|
||||||
the program with the return error value (-1). */
|
the program with the return error value (-1). */
|
||||||
|
mov r0, r4
|
||||||
|
|
||||||
2:
|
2:
|
||||||
mov.l .Lexit, r1
|
mov.l .Lexit, r1
|
||||||
@ -135,7 +136,7 @@ ENTRY(__makecontext)
|
|||||||
add r12, r1
|
add r12, r1
|
||||||
#endif
|
#endif
|
||||||
jsr @r1
|
jsr @r1
|
||||||
mov r0, r4
|
nop
|
||||||
/* The 'exit' call should never return. In case it does cause the
|
/* The 'exit' call should never return. In case it does cause the
|
||||||
process to terminate. */
|
process to terminate. */
|
||||||
ABORT_INSTRUCTION_ASM
|
ABORT_INSTRUCTION_ASM
|
||||||
|
Reference in New Issue
Block a user