This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new bd2cce7f1a9 arch/x64: fix revoke_low_memory
bd2cce7f1a9 is described below

commit bd2cce7f1a95700471d2db9793395f5be993f57f
Author: liwenxiang1 <[email protected]>
AuthorDate: Wed Jan 22 10:19:04 2025 +0800

    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 <[email protected]>
---
 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

Reply via email to