summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-12-05 00:16:42 +0100
committerMichal Idziorek <m.i@gmx.at>2014-12-05 00:16:42 +0100
commit743a4860cce117baec6ef3c40deb0f945529c34f (patch)
treefe9f609521ac66331364d8a9c97ac9dcf5fcd46c /asm
parent41c3e0bc640f570831bd6c18fbfb8c7cec23a43d (diff)
struggling with paging exceptions!
Diffstat (limited to 'asm')
-rw-r--r--asm/asm.h18
-rw-r--r--asm/int_irq.asm155
-rw-r--r--asm/int_irq0.asm9
3 files changed, 173 insertions, 9 deletions
diff --git a/asm/asm.h b/asm/asm.h
index c9a1fa3..58c3f62 100644
--- a/asm/asm.h
+++ b/asm/asm.h
@@ -4,3 +4,21 @@ void int_default_handler();
void int_clock_handler();
void int_syscall_handler();
void int_irq0();
+void int_irq1();
+void int_irq2();
+void int_irq3();
+void int_irq4();
+void int_irq5();
+void int_irq6();
+void int_irq7();
+void int_irq8();
+void int_irq9();
+void int_irq10();
+void int_irq11();
+void int_irq12();
+void int_irq13();
+void int_irq14();
+void int_irq15();
+void int_irq16();
+void int_irq17();
+void int_irq18();
diff --git a/asm/int_irq.asm b/asm/int_irq.asm
new file mode 100644
index 0000000..8341074
--- /dev/null
+++ b/asm/int_irq.asm
@@ -0,0 +1,155 @@
+global int_irq0
+global int_irq1
+global int_irq2
+global int_irq3
+global int_irq4
+global int_irq5
+global int_irq6
+global int_irq7
+global int_irq8
+global int_irq9
+global int_irq10
+global int_irq11
+global int_irq12
+global int_irq13
+global int_irq14
+global int_irq15
+global int_irq16
+global int_irq17
+global int_irq18
+
+[extern exception_handle]
+[extern exception_handle_0]
+[extern exception_handle_1]
+[extern exception_handle_2]
+[extern exception_handle_3]
+[extern exception_handle_4]
+[extern exception_handle_5]
+[extern exception_handle_6]
+[extern exception_handle_7]
+[extern exception_handle_8]
+[extern exception_handle_9]
+[extern exception_handle_10]
+[extern exception_handle_11]
+[extern exception_handle_12]
+[extern exception_handle_13]
+[extern exception_handle_14]
+[extern exception_handle_15]
+[extern exception_handle_16]
+[extern exception_handle_17]
+[extern exception_handle_18]
+
+[bits 32]
+int_irq0:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq1:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq2:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq3:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq4:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq5:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq6:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq7:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq8:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq9:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq10:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq11:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq12:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq13:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq14:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq15:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq16:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq17:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
+
+int_irq18:
+
+ cli
+ call exception_handle ;this will never return due to panic!
+ jmp $
diff --git a/asm/int_irq0.asm b/asm/int_irq0.asm
deleted file mode 100644
index a713774..0000000
--- a/asm/int_irq0.asm
+++ /dev/null
@@ -1,9 +0,0 @@
-global int_irq0
-[extern exception_handle]
-
-[bits 32]
-int_irq0:
-
- cli
- call exception_handle ;this will never return due to panic!
- jmp $