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