Kernel/x86_64 - Fix compilation error
authorJohn Hodge <[email protected]>
Tue, 21 Jan 2014 11:15:22 +0000 (19:15 +0800)
committerJohn Hodge <[email protected]>
Tue, 21 Jan 2014 11:15:22 +0000 (19:15 +0800)
KernelLand/Kernel/arch/x86_64/errors.c

index fda3113..0681d5e 100644 (file)
@@ -109,6 +109,13 @@ void Error_Handler(tRegs *Regs)
                __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)
  * \brief Unrolls the stack to trace execution

UCC git Repository :: git.ucc.asn.au