From 6edeba8fe208fb019aec00fdc72b97407a8078d3 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 11 Apr 2021 20:53:06 +0200 Subject: Enable paging --- src/utils/gdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/gdt.c') diff --git a/src/utils/gdt.c b/src/utils/gdt.c index c380283..8c1c70d 100644 --- a/src/utils/gdt.c +++ b/src/utils/gdt.c @@ -35,13 +35,13 @@ void gdt_memcpy(){ // ----- User Segments GDT_ENTRY ucs_desc; - ucs_desc.base=0x300000; + ucs_desc.base=0; // With paging will take care of allocating the right address for each task ucs_desc.limit=0xFFFFF; ucs_desc.flags=GDT_SZ|GDT_GR; ucs_desc.access=GDT_PR|GDT_PRVL_3|GDT_S|GDT_EXEC|GDT_RW|GDT_DC; GDT_ENTRY uds_desc; - uds_desc.base=0x300000; + uds_desc.base=0; uds_desc.limit=0xFFFFF; uds_desc.flags=GDT_SZ|GDT_GR; uds_desc.access=GDT_PR|GDT_PRVL_3|GDT_S|GDT_RW; -- cgit v1.2.3