From 193b29400a1b056e9660b0c70630e349e4d5a2d6 Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Sun, 7 Nov 2021 18:45:52 +0800 Subject: [PATCH] memory: use 64 GDT entries --- memory/memory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memory/memory.h b/memory/memory.h index 5c08ed7..7f8625c 100644 --- a/memory/memory.h +++ b/memory/memory.h @@ -19,8 +19,8 @@ extern "C" { #define KERNEL_IDT_MAPPING KERNEL_MISC_MAPPING #define KERNEL_IDT_SIZE (256ull * 16) // fill the 256 interrupt vectors -#define KERNEL_GDT_MAPPING (KERNEL_MISC_MAPPING + KERNEL_IDT_SIZE) -#define KERNEL_GDT_SIZE (16ull * 8) +#define KERNEL_GDT_MAPPING (KERNEL_IDT_MAPPING + KERNEL_IDT_SIZE) +#define KERNEL_GDT_SIZE (64ull * 8) #define KERNEL_MISC_NEXT (KERNEL_MISC_MAPPING + KERNEL_IDT_SIZE + KERNEL_GDT_SIZE)