aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/gdt.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/gdt.h')
-rw-r--r--kernel/include/gdt.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/kernel/include/gdt.h b/kernel/include/gdt.h
deleted file mode 100644
index a62d0db..0000000
--- a/kernel/include/gdt.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#pragma once
-
-#include <stddef.h>
-#include <stdint.h>
-
-/* The GDT is one of the x86's descriptor tables. It is used for memory segmentation.
- Here, we don't use segmentation to separate processes from one another (this is done with paging).
- We only use segmentation to make the difference between kernel mode (ring 3) and user mode (ring 0) */
-
-void gdt_init();
-
-#define K_CODE_SEGMENT 0x08
-#define K_DATA_SEGMENT 0x10
-#define U_CODE_SEGMENT 0x18
-#define U_DATA_SEGMENT 0x20
-
-/* vim: set ts=4 sw=4 tw=0 noet :*/