Skip to content
Snippets Groups Projects
Commit d88e399c authored by Jani Kokkonen's avatar Jani Kokkonen Committed by Avi Kivity
Browse files

x64: arch-switch: remove unused stack_trampoline code

parent dca10749
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
extern "C" { extern "C" {
void thread_main(void); void thread_main(void);
void thread_main_c(sched::thread* t); void thread_main_c(sched::thread* t);
void stack_trampoline(sched::thread* t, void (*func)(sched::thread*),
void** stacktop);
} }
namespace sched { namespace sched {
......
...@@ -159,19 +159,3 @@ call_signal_handler_thunk: ...@@ -159,19 +159,3 @@ call_signal_handler_thunk:
iretq iretq
.cfi_endproc .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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment