1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2013-07-08 17:33:19 +02:00
parent aea6aefea9
commit dd0379c608
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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