소스 검색

[fix] According to AAPCS64, should not using x9 to save value

SummerGift 4 년 전
부모
커밋
1c22a18614
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      libcpu/aarch64/cortex-a/entry_point.S

+ 1 - 1
libcpu/aarch64/cortex-a/entry_point.S

@@ -124,7 +124,7 @@ __start:
     dsb sy
     dsb sy
 
 
     ldr x2, =0x40000000 //1G
     ldr x2, =0x40000000 //1G
-    mov x3, x9
+    ldr x3, =PV_OFFSET
     bl rt_hw_mmu_setup_early
     bl rt_hw_mmu_setup_early
 
 
     ldr x30, =after_mmu_enable
     ldr x30, =after_mmu_enable