aboutsummaryrefslogtreecommitdiff
path: root/src/include/gdt.h
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-12-21 03:32:06 -0600
committerNic Gaffney <gaffney_nic@protonmail.com>2023-12-21 03:32:06 -0600
commit138424b31d9c2af158e8ae619248b035b5a280d9 (patch)
tree0da4f6661d68737b5957029242bea43fad77d7a8 /src/include/gdt.h
parent9dbc5231dd738d97eea13f8ecf9005e5b78ea0d3 (diff)
downloadgftos-138424b31d9c2af158e8ae619248b035b5a280d9.tar.gz
set up bochs for debugging and started working on interrupts.
Diffstat (limited to 'src/include/gdt.h')
-rw-r--r--src/include/gdt.h12
1 files changed, 7 insertions, 5 deletions
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);