summaryrefslogtreecommitdiff
path: root/include/kernel/panic.h
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-02-24 14:44:38 -0600
committerDanny Holman <dholman@gymli.org>2024-02-24 14:44:38 -0600
commit2ce0f8af51dae9e7d591ff5fd038f89d6ca9dbbe (patch)
tree314f6105fc2996923070ed7f82c3acc8d5b2b20c /include/kernel/panic.h
parent5d06824289868c5a345fbcfa8ed4d1e63af84fdb (diff)
arch: i386: cleanup everything and reorganize
Clean up everything in the i386 arch directory. This code has been in dire need of refactoring for a long while. All the inline assembly functions and the data structures related to the architecture should be placed into their own header file. Now the scheduler can access registers and ISRs without having to deal with arch-specific code. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'include/kernel/panic.h')
-rw-r--r--include/kernel/panic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/kernel/panic.h b/include/kernel/panic.h
index 529702b..e15d6ee 100644
--- a/include/kernel/panic.h
+++ b/include/kernel/panic.h
@@ -1,6 +1,12 @@
#ifndef KERNEL_PANIC_H
#define KERNEL_PANIC_H
+#include <kernel/asm.h>
+#include <stdint.h>
+#include <stddef.h>
+
void panic(const char *str);
+void dump_reg(struct regs *regs);
+void dump_stack(struct regs *regs, size_t length);
#endif