Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Call x86-64 __setcontext directly
Since x86-64 __start_context calls the internal __setcontext:

5089: 00000000000417e0   145 FUNC    LOCAL  DEFAULT   13 __setcontext

it should call __setcontext directly.

	* sysdeps/unix/sysv/linux/x86_64/__start_context.S
	(__start_context): Call __setcontext directly.
  • Loading branch information
H.J. Lu committed Mar 2, 2016
1 parent dacc1a2 commit 521266a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2016-03-01 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/unix/sysv/linux/x86_64/__start_context.S
(__start_context): Call __setcontext directly.

2016-02-26 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/alpha/kernel-features.h
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/unix/sysv/linux/x86_64/__start_context.S
Expand Up @@ -36,7 +36,7 @@ ENTRY(__start_context)
testq %rdi, %rdi
je 2f /* If it is zero exit. */

call JUMPTARGET(__setcontext)
call __setcontext
/* If this returns (which can happen if the syscall fails) we'll
exit the program with the return error value (-1). */
movq %rax,%rdi
Expand Down

0 comments on commit 521266a

Please sign in to comment.