From 1f061145327d255a97ca0fff6960744a12b42863 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 10 Jan 2010 03:31:15 +0100 Subject: Expanded kernel panic function. --- kernel/panic.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 kernel/panic.h (limited to 'kernel/panic.h') 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 -- cgit v1.2.3