diff options
Diffstat (limited to 'kernel/panic.h')
-rw-r--r-- | kernel/panic.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/kernel/panic.h b/kernel/panic.h new file mode 100644 index 0000000..6ed723a --- /dev/null +++ b/kernel/panic.h @@ -0,0 +1,31 @@ +#ifndef PANIC_H +#define PANIC_H + +#include "types.h" + +typedef struct { + uint32_t ss; + uint32_t ds; + + uint32_t edi; + uint32_t esi; + uint32_t ebp; + uint32_t esp; + uint32_t ebx; + uint32_t edx; + uint32_t ecx; + uint32_t eax; + + uint32_t num; + uint32_t error_code; + + uint32_t eip; + uint32_t cs; + uint32_t eflags; + uint32_t user_esp; + uint32_t user_ss; +} panic_stack_t; + +void panic(panic_stack_t stack); + +#endif |