From 6c02a6538e8047bde93ae27a2207c9700e0ce6cd Mon Sep 17 00:00:00 2001
From: John Hodge <tpg@mutabah.net>
Date: Tue, 21 Jan 2014 19:15:22 +0800
Subject: [PATCH] Kernel/x86_64 - Fix compilation error

---
 KernelLand/Kernel/arch/x86_64/errors.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/KernelLand/Kernel/arch/x86_64/errors.c b/KernelLand/Kernel/arch/x86_64/errors.c
index fda31139..0681d5ea 100644
--- a/KernelLand/Kernel/arch/x86_64/errors.c
+++ b/KernelLand/Kernel/arch/x86_64/errors.c
@@ -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
-- 
GitLab