summaryrefslogtreecommitdiff
path: root/kernel/interrupts.h
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-26 23:58:14 +0200
committerMiguel <m.i@gmx.at>2018-09-26 23:58:14 +0200
commitb86f48da7fc46934d576698bb4f16be9b2a7eaf9 (patch)
treeea42a72faeb406c303025b0c981a76e533a8b110 /kernel/interrupts.h
parent915791f6acedbb35db73216156c1baa790e384d9 (diff)
some bugfixes
Diffstat (limited to 'kernel/interrupts.h')
-rw-r--r--kernel/interrupts.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/kernel/interrupts.h b/kernel/interrupts.h
index b3b8a93..31b0cc0 100644
--- a/kernel/interrupts.h
+++ b/kernel/interrupts.h
@@ -26,6 +26,10 @@
* -------------------
* * 0x81-0xA0
*
+ * Default
+ * -------
+ * * 0xff
+ *
* Usage
* -----
*
@@ -34,6 +38,10 @@
* interrupt_handler() and exception_handler() will be called accordingly from
* the interrupt handlers this functionality is backed by. You can find them
* in asm_int.h. The selector 0x08 is used.
+ *
+ * You can register handlers for specific interrupts via
+ * interrupt_register(). Remember that the interrupts are routed
+ * through the I/O APIC which has to be configured as well.
*/
#define INTERRUPT_SYSCALL 0x80 // can be called from user code / ring 3
@@ -46,9 +54,8 @@
#define INTERRUPT_E1000 0x93
#define INTERRUPT_APIC_TIMER 0x94
-
void interrupts_init();
void interrupts_install();
-void interrupt_handler_register(uint32_t irq, uint32_t func_addr);
+void interrupt_register(uint32_t irq, uint32_t func_addr);
#endif