aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/idt.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/idt.h')
-rw-r--r--kernel/include/idt.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/include/idt.h b/kernel/include/idt.h
index 9415c8e..8e84cea 100644
--- a/kernel/include/idt.h
+++ b/kernel/include/idt.h
@@ -60,13 +60,12 @@
#define EFLAGS_IF (0x1 << 9)
-struct registers {
+typedef struct registers {
uint32_t ds; // Data segment selector
uint32_t edi, esi, ebp, useless_esp, ebx, edx, ecx, eax; // Pushed by pusha.
uint32_t int_no, err_code; // Interrupt number and error code (if applicable)
uint32_t eip, cs, eflags, esp, ss; // Pushed by the processor automatically.
-};
-typedef struct registers registers_t;
+} registers_t;
typedef void (*isr_handler_t)(registers_t*);