From bd2cce7f1a95700471d2db9793395f5be993f57f Mon Sep 17 00:00:00 2001 From: liwenxiang1 Date: Wed, 22 Jan 2025 10:19:04 +0800 Subject: [PATCH] arch/x64: fix revoke_low_memory the virtual address of the page table (PT) is saved into the page directory (PD) entry, but the PD entry should store the physical address instead Signed-off-by: liwenxiang1 --- arch/x86_64/src/intel64/intel64_head.S | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86_64/src/intel64/intel64_head.S b/arch/x86_64/src/intel64/intel64_head.S index 060d3d184f3..b5b8461a1d4 100644 --- a/arch/x86_64/src/intel64/intel64_head.S +++ b/arch/x86_64/src/intel64/intel64_head.S @@ -456,7 +456,6 @@ __revoke_low_memory: lea g_pd_low, %edi add %rcx, %rdi lea g_pt_low, %esi - add %rcx, %rsi /* for ecx = 0...64 : Loop and setup 64x 2MB page directories */ mov $64, %ecx