Patchwork PATCH: Call x86-64 __setcontext directly

login
register
mail settings
Submitter H.J. Lu
Date March 1, 2016, 11:41 p.m.
Message ID <20160301234155.GA16092@intel.com>
Download mbox | patch
Permalink /patch/11164/
State New
Headers show

Comments

H.J. Lu - March 1, 2016, 11:41 p.m.
Since x86-64 __start_context calls the internal __setcontext, it
should call __setcontext directly.

I will check it in shortly.

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

Patch

diff --git a/sysdeps/unix/sysv/linux/x86_64/__start_context.S b/sysdeps/unix/sysv/linux/x86_64/__start_context.S
index 408d30d..6a33cd0 100644
--- a/sysdeps/unix/sysv/linux/x86_64/__start_context.S
+++ b/sysdeps/unix/sysv/linux/x86_64/__start_context.S
@@ -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