summaryrefslogtreecommitdiff
path: root/kernel/panic.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-01-10 03:31:15 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-01-10 03:31:15 +0100
commit1f061145327d255a97ca0fff6960744a12b42863 (patch)
tree9bd6b834aee93ce4d74c762c682c18b3e9e41d61 /kernel/panic.h
parente44ad9e6463db78c3f1df8f4dbff0cbf343ca49f (diff)
Expanded kernel panic function.
Diffstat (limited to 'kernel/panic.h')
-rw-r--r--kernel/panic.h31
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