aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/interrupts
diff options
context:
space:
mode:
authorMarvin Borner2020-04-28 18:32:36 +0200
committerMarvin Borner2020-04-28 18:32:36 +0200
commit4b8518b4e791c68154ec52badcc921b62afafb49 (patch)
tree9c855266cf7451f503bf3cb849e63ac72ae48e74 /src/kernel/interrupts
parent46007d2598b7aef13895b21669cfb6f24272e5fe (diff)
Maaaany fixes...
Sorry for the increasingly worse-getting commit messages :D
Diffstat (limited to 'src/kernel/interrupts')
-rw-r--r--src/kernel/interrupts/interrupts.h6
-rw-r--r--src/kernel/interrupts/isr.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/kernel/interrupts/interrupts.h b/src/kernel/interrupts/interrupts.h
index 9047104..6651cfd 100644
--- a/src/kernel/interrupts/interrupts.h
+++ b/src/kernel/interrupts/interrupts.h
@@ -80,6 +80,12 @@ void irq_handler(struct regs *r);
*/
int irq_is_installed(int irq);
+/**
+ * Logs fault messages and panics
+ * @param r The registers
+ */
+void fault_handler(struct regs *r);
+
// Defined in isr.asm
extern void isr0();
diff --git a/src/kernel/interrupts/isr.c b/src/kernel/interrupts/isr.c
index c2d58ef..2837239 100644
--- a/src/kernel/interrupts/isr.c
+++ b/src/kernel/interrupts/isr.c
@@ -57,7 +57,7 @@ void isr_install_handler(size_t isr, irq_handler_t handler)
isr_routines[isr] = handler;
}
-// Removes the custom IRQ handler
+// Remove the custom IRQ handler
void isr_uninstall_handler(size_t isr)
{
isr_routines[isr] = 0;