summaryrefslogtreecommitdiff
path: root/src/interrupts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interrupts.c')
-rw-r--r--src/interrupts.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/interrupts.c b/src/interrupts.c
index a3eea59..c456774 100644
--- a/src/interrupts.c
+++ b/src/interrupts.c
@@ -1,8 +1,18 @@
#include "interrupts.h"
#include "string.h"
+#include "stdio.h"
void interrupts_init( interrupt_t *interrupts )
{
memset( interrupts, 0, sizeof( interrupt_t ) );
}
+
+uint32_t interrupts_handle_interrupt( uint8_t interrupt_no, uint32_t esp )
+{
+ puts( "interrupt" );
+
+ // for now, we are using the same stack for kernel and interrupt
+ // handlers (n task switching)
+ return esp;
+}