From 2ce0f8af51dae9e7d591ff5fd038f89d6ca9dbbe Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sat, 24 Feb 2024 14:44:38 -0600 Subject: 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 --- include/kernel/mem.h | 1 - include/kernel/panic.h | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include/kernel') diff --git a/include/kernel/mem.h b/include/kernel/mem.h index dfbcf23..aae3091 100644 --- a/include/kernel/mem.h +++ b/include/kernel/mem.h @@ -1,6 +1,5 @@ #ifndef KERNEL_MEM_H -#include #include int init_kmalloc(void); 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 +#include +#include + void panic(const char *str); +void dump_reg(struct regs *regs); +void dump_stack(struct regs *regs, size_t length); #endif -- cgit v1.2.3