backtrace: Remove assembly assumption that grub_backtrace_pointer is under 4G
This commit is contained in:
parent
93ecc3f1f8
commit
79cfad6fbe
1 changed files with 4 additions and 4 deletions
|
@ -56,11 +56,11 @@ void
|
||||||
grub_backtrace (void)
|
grub_backtrace (void)
|
||||||
{
|
{
|
||||||
#ifdef __x86_64__
|
#ifdef __x86_64__
|
||||||
asm volatile ("movq %rbp, %rdi\n"
|
asm volatile ("movq %%rbp, %%rdi\n"
|
||||||
"call " EXT_C("grub_backtrace_pointer"));
|
"call %%rax": :"a"(grub_backtrace_pointer));
|
||||||
#else
|
#else
|
||||||
asm volatile ("movl %ebp, %eax\n"
|
asm volatile ("movl %%ebp, %%eax\n"
|
||||||
"call " EXT_C("grub_backtrace_pointer"));
|
"call %%ecx": :"c"(grub_backtrace_pointer));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue