mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-29 16:52:28 +00:00
Fix alignment of ftrace hook
This commit is contained in:
parent
e1316d6565
commit
0e4c828a8e
1 changed files with 6 additions and 4 deletions
|
@ -33,10 +33,11 @@ ftrace_hook:
|
||||||
and $-16,%rsp
|
and $-16,%rsp
|
||||||
sub $256,%rsp
|
sub $256,%rsp
|
||||||
push %rax
|
push %rax
|
||||||
|
push %rbx
|
||||||
|
push %rcx
|
||||||
|
push %rdx
|
||||||
push %rdi
|
push %rdi
|
||||||
push %rsi
|
push %rsi
|
||||||
push %rdx
|
|
||||||
push %rcx
|
|
||||||
push %r8
|
push %r8
|
||||||
push %r9
|
push %r9
|
||||||
push %r10
|
push %r10
|
||||||
|
@ -56,10 +57,11 @@ ftrace_hook:
|
||||||
pop %r10
|
pop %r10
|
||||||
pop %r9
|
pop %r9
|
||||||
pop %r8
|
pop %r8
|
||||||
pop %rcx
|
|
||||||
pop %rdx
|
|
||||||
pop %rsi
|
pop %rsi
|
||||||
pop %rdi
|
pop %rdi
|
||||||
|
pop %rdx
|
||||||
|
pop %rcx
|
||||||
|
pop %rbx
|
||||||
pop %rax
|
pop %rax
|
||||||
leave
|
leave
|
||||||
1: ret
|
1: ret
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue