diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-11 20:53:06 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-11 20:53:06 +0200 |
| commit | 6edeba8fe208fb019aec00fdc72b97407a8078d3 (patch) | |
| tree | 965376727a7519fd20f73a946c01157151098ec6 /src/utils/gdt.c | |
| parent | 3212145e94e0c68a5da96306545c116292dfbe85 (diff) | |
Enable paging
Diffstat (limited to 'src/utils/gdt.c')
| -rw-r--r-- | src/utils/gdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
