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 .type calltrace, @function
calltrace: calltrace:
push %rbp push %rbp
push %rbx
movq %rsp, %rbp movq %rsp, %rbp
xorl %edi, %edi xorl %edi, %edi
movq %rbp, %rbx movq %rbp, %rbx
@ -45,6 +46,7 @@ calltrace_unwind:
jmp calltrace_unwind jmp calltrace_unwind
calltrace_done: calltrace_done:
popq %rbx
popq %rbp popq %rbp
retq retq

View file

@ -29,6 +29,7 @@
.type calltrace, @function .type calltrace, @function
calltrace: calltrace:
push %ebp push %ebp
push %ebx
movl %esp, %ebp movl %esp, %ebp
xorl %edi, %edi xorl %edi, %edi
movl %ebp, %ebx movl %ebp, %ebx
@ -47,6 +48,7 @@ calltrace_unwind:
jmp calltrace_unwind jmp calltrace_unwind
calltrace_done: calltrace_done:
popl %ebx
popl %ebp popl %ebp
retl retl