aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r--sysdeps/mach/hurd/x86/init-first.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sysdeps/mach/hurd/x86/init-first.c b/sysdeps/mach/hurd/x86/init-first.c
index 6f71d71bf0..211b2096b6 100644
--- a/sysdeps/mach/hurd/x86/init-first.c
+++ b/sysdeps/mach/hurd/x86/init-first.c
@@ -218,15 +218,7 @@ _hurd_stack_setup (void **argptr)
void doinit (intptr_t *data)
{
init ((void **) data);
-# ifdef __x86_64__
- asm volatile ("movq %0, %%rsp\n" /* Switch to new outermost stack. */
- "xorq %%rbp, %%rbp\n" /* Clear outermost frame pointer. */
- "jmp *%1" : : "r" (data), "r" (caller));
-# else
- asm volatile ("movl %0, %%esp\n" /* Switch to new outermost stack. */
- "xorl %%ebp, %%ebp\n" /* Clear outermost frame pointer. */
- "jmp *%1" : : "r" (data), "r" (caller));
-# endif
+ RETURN_TO (data, caller, 0);
__builtin_unreachable ();
}