backtrace: Fix register call syntax
This commit is contained in:
parent
a7cf8b1e23
commit
60ae582142
1 changed files with 2 additions and 2 deletions
|
@ -57,10 +57,10 @@ grub_backtrace (void)
|
|||
{
|
||||
#ifdef __x86_64__
|
||||
asm volatile ("movq %%rbp, %%rdi\n"
|
||||
"call %%rax": :"a"(grub_backtrace_pointer));
|
||||
"callq *%%rax": :"a"(grub_backtrace_pointer));
|
||||
#else
|
||||
asm volatile ("movl %%ebp, %%eax\n"
|
||||
"call %%ecx": :"c"(grub_backtrace_pointer));
|
||||
"calll *%%ecx": :"c"(grub_backtrace_pointer));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue