summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-30 21:47:59 +0100
committerAnton Kling <anton@kling.gg>2023-10-30 21:49:48 +0100
commitca76600acc8bf7a02346efa5bd8f17072210ec01 (patch)
tree4ebf2fd205701d1582afb33420028621cab6c674 /cpu
parent5a339a9b7b5cdcee3629b14f1b6a58ac4ab60fce (diff)
Cleanup of things that did not get formatted or not included in old commits
Diffstat (limited to 'cpu')
-rw-r--r--cpu/idt.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/cpu/idt.h b/cpu/idt.h
index 853b1e0..025ba75 100644
--- a/cpu/idt.h
+++ b/cpu/idt.h
@@ -54,19 +54,13 @@ typedef struct registers registers_t;
struct interrupt_frame;
-struct kernel_registers {
- // uint32_t ds;
- // uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
- // uint32_t interrupt_number, error_code;
- uint32_t error_code;
- uint32_t eip, cs, eflags;
-};
-
struct registers {
- uint32_t ds;
- uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
- uint32_t interrupt_number, error_code;
- uint32_t eip, cs, eflags, useresp, ss;
+ uint32_t error_code;
+ uint32_t eip;
+ uint32_t cs;
+ uint32_t eflags;
+ uint32_t esp;
+ uint32_t ss;
};
void idt_init(void);