mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix calltrace implementation on x86 and x86-64.
This commit is contained in:
parent
aea6aefea9
commit
dd0379c608
2 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
.type calltrace, @function
|
||||
calltrace:
|
||||
push %rbp
|
||||
push %rbx
|
||||
movq %rsp, %rbp
|
||||
xorl %edi, %edi
|
||||
movq %rbp, %rbx
|
||||
|
@ -45,6 +46,7 @@ calltrace_unwind:
|
|||
jmp calltrace_unwind
|
||||
|
||||
calltrace_done:
|
||||
popq %rbx
|
||||
popq %rbp
|
||||
retq
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
.type calltrace, @function
|
||||
calltrace:
|
||||
push %ebp
|
||||
push %ebx
|
||||
movl %esp, %ebp
|
||||
xorl %edi, %edi
|
||||
movl %ebp, %ebx
|
||||
|
@ -47,6 +48,7 @@ calltrace_unwind:
|
|||
jmp calltrace_unwind
|
||||
|
||||
calltrace_done:
|
||||
popl %ebx
|
||||
popl %ebp
|
||||
retl
|
||||
|
||||
|
|
Loading…
Reference in a new issue