diff options
-rw-r--r-- | i386/i386/gdt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/i386/i386/gdt.c b/i386/i386/gdt.c index 8484073..845e7c6 100644 --- a/i386/i386/gdt.c +++ b/i386/i386/gdt.c @@ -43,12 +43,12 @@ gdt_init() { /* Initialize the kernel code and data segment descriptors. */ fill_gdt_descriptor(KERNEL_CS, - LINEAR_MIN_KERNEL_ADDRESS, - LINEAR_MAX_KERNEL_ADDRESS - LINEAR_MIN_KERNEL_ADDRESS - 1, + LINEAR_MIN_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS, + LINEAR_MAX_KERNEL_ADDRESS - (LINEAR_MIN_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS) - 1, ACC_PL_K|ACC_CODE_R, SZ_32); fill_gdt_descriptor(KERNEL_DS, - LINEAR_MIN_KERNEL_ADDRESS, - LINEAR_MAX_KERNEL_ADDRESS - LINEAR_MIN_KERNEL_ADDRESS - 1, + LINEAR_MIN_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS, + LINEAR_MAX_KERNEL_ADDRESS - (LINEAR_MIN_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS) - 1, ACC_PL_K|ACC_DATA_W, SZ_32); fill_gdt_descriptor(LINEAR_DS, 0, |