backtrace: Fix register call syntax

This commit is contained in:
Vladimir Serbinenko 2015-12-31 14:54:48 +01:00
parent a7cf8b1e23
commit 60ae582142

View file

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