summaryrefslogtreecommitdiff
path: root/src/kernel/arch/generic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/generic.h')
-rw-r--r--src/kernel/arch/generic.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/arch/generic.h b/src/kernel/arch/generic.h
index f8dfe51..fd44e38 100644
--- a/src/kernel/arch/generic.h
+++ b/src/kernel/arch/generic.h
@@ -2,8 +2,9 @@
#include <kernel/arch/i386/registers.h>
#include <shared/types.h>
-#include <stdbool.h>
#include <stdarg.h>
+#include <stdbool.h>
+#include <stddef.h>
// i have no idea where else to put it
// some code assumes that it's a power of 2
@@ -39,3 +40,6 @@ void *pagedir_virt2phys(struct pagedir *dir, const void __user *virt,
bool user, bool writeable);
int kprintf(const char *fmt, ...);
+
+void *debug_caller(size_t depth);
+void debug_stacktrace(void);