aboutsummaryrefslogtreecommitdiff
path: root/kernel/boot
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/boot')
-rw-r--r--kernel/boot/gdt/gdt.cc (renamed from kernel/boot/gdt/gdt.c)17
1 files changed, 10 insertions, 7 deletions
diff --git a/kernel/boot/gdt/gdt.c b/kernel/boot/gdt/gdt.cc
index 182f3d9..e86638a 100644
--- a/kernel/boot/gdt/gdt.c
+++ b/kernel/boot/gdt/gdt.cc
@@ -16,13 +16,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-
+#include <boot/gdt.h>
#include <kernel/io.h>
+#include <stdint.h>
-#include <boot/gdt.h>
+namespace GDT
+{
-GDT_entry_t GDT_entries[] = {
+entry_t entries[] = {
/* NULL Descriptor */
GDT_ENTRY(0, 0, 0, 0),
@@ -42,10 +43,12 @@ GDT_entry_t GDT_entries[] = {
/* TODO: LDT? */
};
-GDT_descriptor_t GDT_descriptor = { sizeof(GDT_entries) - 1, GDT_entries };
+descriptor_t descriptor = { sizeof(entries) - 1, entries };
void
-GDT_load(void)
+load(void)
{
- _GDT_flush(&GDT_descriptor);
+ _GDT_flush(&descriptor);
+}
+
}