From 9932ea0797d0e20cdd1d3726bcfb7176ab495ffb Mon Sep 17 00:00:00 2001 From: Qingsong Chen Date: Mon, 1 Jul 2024 08:41:16 +0000 Subject: [PATCH] Remove PDPE's global bit of boot page table --- ostd/src/arch/x86/boot/boot.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ostd/src/arch/x86/boot/boot.S b/ostd/src/arch/x86/boot/boot.S index 404d2ce8d..120b26199 100644 --- a/ostd/src/arch/x86/boot/boot.S +++ b/ostd/src/arch/x86/boot/boot.S @@ -120,7 +120,7 @@ PTE_GLOBAL = (1 << 8) // 0x00000000_80000000 ~ 0x00000000_bfffffff // 0x00000000_c0000000 ~ 0x00000000_ffffffff lea edi, [boot_pml4 - KERNEL_VMA] - lea eax, [boot_pdpt - KERNEL_VMA + (PTE_PRESENT | PTE_WRITE | PTE_GLOBAL)] + lea eax, [boot_pdpt - KERNEL_VMA + (PTE_PRESENT | PTE_WRITE)] mov dword ptr [edi], eax mov dword ptr [edi + 4], 0 @@ -130,14 +130,14 @@ PTE_GLOBAL = (1 << 8) // 0xffff8000_c0000000 ~ 0xffff8000_ffffffff // 0xffff8008_00000000 ~ 0xffff8008_3fffffff lea edi, [boot_pml4 - KERNEL_VMA + 0x100 * 8] - lea eax, [boot_pdpt - KERNEL_VMA + (PTE_PRESENT | PTE_WRITE | PTE_GLOBAL)] + lea eax, [boot_pdpt - KERNEL_VMA + (PTE_PRESENT | PTE_WRITE)] mov dword ptr [edi], eax mov dword ptr [edi + 4], 0 // PML4: 0xffffffff_80000000 ~ 0xffffffff_bfffffff // 0xffffffff_c0000000 ~ 0xffffffff_ffffffff lea edi, [boot_pml4 - KERNEL_VMA + 0x1ff * 8] - lea eax, [boot_pdpt - KERNEL_VMA + (PTE_PRESENT | PTE_WRITE | PTE_GLOBAL)] + lea eax, [boot_pdpt - KERNEL_VMA + (PTE_PRESENT | PTE_WRITE)] mov dword ptr [edi], eax mov dword ptr [edi + 4], 0