mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-21 18:44:01 +00:00
Stage 26 v2
This commit is contained in:
19
clks/arch/x86_64/exec_stack_call.S
Normal file
19
clks/arch/x86_64/exec_stack_call.S
Normal file
@@ -0,0 +1,19 @@
|
||||
.intel_syntax noprefix
|
||||
|
||||
.global clks_exec_call_on_stack_x86_64
|
||||
.type clks_exec_call_on_stack_x86_64, @function
|
||||
|
||||
clks_exec_call_on_stack_x86_64:
|
||||
mov r11, rsp
|
||||
mov rsp, rsi
|
||||
and rsp, -16
|
||||
sub rsp, 8
|
||||
mov [rsp], r11
|
||||
|
||||
call rdi
|
||||
|
||||
mov rsp, [rsp]
|
||||
ret
|
||||
|
||||
.size clks_exec_call_on_stack_x86_64, .-clks_exec_call_on_stack_x86_64
|
||||
.section .note.GNU-stack,"",@progbits
|
||||
Reference in New Issue
Block a user