From d88e399c72e6f1fbc27b105cf561e97783764baf Mon Sep 17 00:00:00 2001 From: Jani Kokkonen <jani.kokkonen@huawei.com> Date: Fri, 16 May 2014 16:39:47 +0200 Subject: [PATCH] x64: arch-switch: remove unused stack_trampoline code Signed-off-by: Jani Kokkonen <jani.kokkonen@huawei.com> Signed-off-by: Avi Kivity <avi@cloudius-systems.com> --- arch/x64/arch-switch.hh | 2 -- arch/x64/entry.S | 16 ---------------- 2 files changed, 18 deletions(-) diff --git a/arch/x64/arch-switch.hh b/arch/x64/arch-switch.hh index 18b407e3d..6bdfce5f9 100644 --- a/arch/x64/arch-switch.hh +++ b/arch/x64/arch-switch.hh @@ -15,8 +15,6 @@ extern "C" { void thread_main(void); void thread_main_c(sched::thread* t); -void stack_trampoline(sched::thread* t, void (*func)(sched::thread*), - void** stacktop); } namespace sched { diff --git a/arch/x64/entry.S b/arch/x64/entry.S index fe05f39d3..b6f5abec4 100644 --- a/arch/x64/entry.S +++ b/arch/x64/entry.S @@ -159,19 +159,3 @@ call_signal_handler_thunk: iretq .cfi_endproc -.global stack_trampoline -stack_trampoline: # %rsi=arg, %rdi=func, %rdx=stack - .type stack_trampoline, @function - .cfi_startproc simple - .cfi_def_cfa %rsp, 0 - # align the stack at 16 bytes for sse - andq $-16, %rdx - sub $8, %rdx - mov %rsp, -8(%rdx) - lea -8(%rdx), %rsp - .cfi_rel_offset %rsp, 0 - call *%rsi - pop %rsp - .cfi_restore %rsp - ret - .cfi_endproc -- GitLab