From 138424b31d9c2af158e8ae619248b035b5a280d9 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Thu, 21 Dec 2023 03:32:06 -0600 Subject: set up bochs for debugging and started working on interrupts. --- src/include/gdt.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/include/gdt.h') diff --git a/src/include/gdt.h b/src/include/gdt.h index 06a0d96..8cc2542 100644 --- a/src/include/gdt.h +++ b/src/include/gdt.h @@ -16,11 +16,13 @@ typedef struct GDTR { uint32_t offset; } __attribute__((packed)) GDTR_t; -typedef struct GDT { - Segment_Descriptor_t nulldesc; - Segment_Descriptor_t codedesc; - Segment_Descriptor_t datadesc; -} __attribute__((packed)) GDT_t; +// typedef struct GDT { +// Segment_Descriptor_t nulldesc; +// Segment_Descriptor_t codedesc; +// Segment_Descriptor_t datadesc; +// } __attribute__((packed)) GDT_t; + +typedef Segment_Descriptor_t *GDT_t; uint16_t make_code(uint8_t priv, uint8_t dc, uint8_t rw); uint16_t make_data(uint8_t priv, uint8_t dc, uint8_t rw); -- cgit v1.2.3