aboutsummaryrefslogtreecommitdiff
path: root/kernel/boot/gdt
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-12-06 20:14:28 -0500
committerRaghuram Subramani <raghus2247@gmail.com>2025-12-06 20:14:28 -0500
commit2cf843ae6de1f35e5a5d3a947d0179337e82752f (patch)
tree7e7983be37568fb0f9cbd806de94573a61df83ca /kernel/boot/gdt
parent096d9ab61281062b6672c6c9f413de97e034d3f7 (diff)
misc: C++->CHEADmain
I know; it's POINTLESS! However, I do enjoy programming in C more than C++ so I ended up spending the hour it takes converting this project from C++ to C.
Diffstat (limited to 'kernel/boot/gdt')
-rw-r--r--kernel/boot/gdt/gdt.c (renamed from kernel/boot/gdt/gdt.cc)11
1 files changed, 3 insertions, 8 deletions
diff --git a/kernel/boot/gdt/gdt.cc b/kernel/boot/gdt/gdt.c
index bf53566..3728b32 100644
--- a/kernel/boot/gdt/gdt.cc
+++ b/kernel/boot/gdt/gdt.c
@@ -18,10 +18,7 @@
#include <boot/gdt.h>
-namespace GDT
-{
-
-entry_t l_entries[] = {
+static gdt_entry_t l_entries[] = {
/* NULL Descriptor */
GDT_ENTRY(0, 0, 0, 0),
@@ -41,12 +38,10 @@ entry_t l_entries[] = {
/* TODO: LDT? */
};
-descriptor_t descriptor = { sizeof(l_entries) - 1, l_entries };
+static gdt_descriptor_t descriptor = { sizeof(l_entries) - 1, l_entries };
void
-load(void)
+gdt_load(void)
{
_GDT_flush(&descriptor);
}
-
-}