Skip to content
Snippets Groups Projects
Commit 6c02a653 authored by John Hodge's avatar John Hodge
Browse files

Kernel/x86_64 - Fix compilation error

parent c52507d2
No related merge requests found
...@@ -109,6 +109,13 @@ void Error_Handler(tRegs *Regs) ...@@ -109,6 +109,13 @@ void Error_Handler(tRegs *Regs)
__asm__ __volatile__ ("hlt"); __asm__ __volatile__ ("hlt");
} }
void Proc_PrintBacktrace(void)
{
Uint64 *rbp;
__asm__ __volatile__ ("mov %%rbp, %0" : "=r" (rbp));
Error_Backtrace( rbp[1], rbp[0] );
}
/** /**
* \fn void Error_Backtrace(Uint eip, Uint ebp) * \fn void Error_Backtrace(Uint eip, Uint ebp)
* \brief Unrolls the stack to trace execution * \brief Unrolls the stack to trace execution
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment