summaryrefslogtreecommitdiff
path: root/src/interrupts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interrupts.h')
-rw-r--r--src/interrupts.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interrupts.h b/src/interrupts.h
index 01406e3..d4ceab6 100644
--- a/src/interrupts.h
+++ b/src/interrupts.h
@@ -1,11 +1,14 @@
#ifndef INTERRUPTS_H
#define INTERRUPTS_H
+#include <stdint.h>
+
typedef struct {
} interrupt_gate_descriptor_t;
typedef struct {
+
} interrupt_t;
void interrupts_enable( void );
@@ -13,6 +16,8 @@ void interrupts_disable( void );
void interrupts_init( interrupt_t *interrupt );
+uint32_t interrupts_handle_interrupt( uint8_t interrupt_no, uint32_t esp );
+
// initialize IDT
// handle gates
// assembly trampolines calling C (static) functions