mirror of
https://github.com/fluencelabs/wasmer
synced 2025-07-30 23:02:06 +00:00
Wrap alternative stack functions properly.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
.globl run_on_wasm_stack
|
||||
run_on_wasm_stack:
|
||||
.globl run_on_alternative_stack
|
||||
run_on_alternative_stack:
|
||||
# (stack_end, stack_begin)
|
||||
# We need to ensure 16-byte alignment here.
|
||||
pushq %r15
|
||||
@@ -10,7 +10,7 @@ pushq %rbx
|
||||
pushq %rbp
|
||||
movq %rsp, -16(%rdi)
|
||||
|
||||
leaq run_on_wasm_stack.returning(%rip), %rax
|
||||
leaq run_on_alternative_stack.returning(%rip), %rax
|
||||
movq %rax, -24(%rdi)
|
||||
|
||||
movq %rsi, %rsp
|
||||
@@ -22,7 +22,7 @@ popq %r14
|
||||
popq %r15
|
||||
retq
|
||||
|
||||
run_on_wasm_stack.returning:
|
||||
run_on_alternative_stack.returning:
|
||||
movq (%rsp), %rsp
|
||||
popq %rbp
|
||||
popq %rbx
|
||||
|
Reference in New Issue
Block a user