summaryrefslogtreecommitdiff
path: root/kernel/kernel.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-07-08 19:19:31 +0200
committerMichal Idziorek <m.i@gmx.at>2014-07-08 19:19:31 +0200
commit9c928f4962e4c4f9a03104bb0d6bac82f2cfa628 (patch)
treeeb97c229393d2243ccd899a3a68ea8cb53f2d57e /kernel/kernel.c
parentab398b66081a5595776ac9121aaae07a3c2fe455 (diff)
added and successfuly tested software interrupt
int 88 is issued by the kb driver whenever A is pressed and the the int_test_handler is run.
Diffstat (limited to 'kernel/kernel.c')
-rw-r--r--kernel/kernel.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/kernel.c b/kernel/kernel.c
index 9bc3d64..989eab6 100644
--- a/kernel/kernel.c
+++ b/kernel/kernel.c
@@ -14,7 +14,7 @@ void int_test_handler()
{
__asm__("pusha");
- scr_put_string_nl("inside software interrupt handler 8");
+ scr_put_string_nl("inside software interrupt handler 88");
__asm__("popa");
@@ -36,13 +36,15 @@ void kernel_main()
// install and enable!
int_init(0x08);
int_install();
- int_enable();
// install keyboard handler
int_install_ir(33, 0b10001110, 0x08,&int_kb_handler);
// install test handler
-// int_install_ir(33, 0b10001110, 0x08,&int_kb_handler);
+ int_install_ir(88, 0b10001110, 0x08,&int_test_handler);
+
+ // now we can enable interrupts back again
+ int_enable();
scr_put_string_nl("Interrupts are up and running");