diff options
author | Anton Kling <anton@kling.gg> | 2024-02-07 11:36:21 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-02-07 22:25:47 +0100 |
commit | 35958c8c6b600482f68fef08ac26547b5655e987 (patch) | |
tree | a3329136adc1b92885c60462e7dd74c98eaa0953 /kernel/cpu/idt.h | |
parent | b7fa1457727338416499d1b0144f1042a6878a97 (diff) |
A lot of small changes
Diffstat (limited to 'kernel/cpu/idt.h')
-rw-r--r-- | kernel/cpu/idt.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/kernel/cpu/idt.h b/kernel/cpu/idt.h index 9341887..fdd6a3e 100644 --- a/kernel/cpu/idt.h +++ b/kernel/cpu/idt.h @@ -55,13 +55,9 @@ typedef struct registers registers_t; struct interrupt_frame; struct registers { - u32 error_code; - u32 eip; - u32 cs; - u32 eflags; - u32 esp; - u32 ss; -}; + uintptr_t error_code; + uintptr_t eip, cs, eflags, esp, ss; +} __attribute__((packed)); void idt_init(void); __attribute__((no_caller_saved_registers)) void EOI(unsigned char irq); |