summaryrefslogtreecommitdiff
path: root/libcpu/aarch64/cortex-a
diff options
context:
space:
mode:
authorhuanghe <[email protected]>2023-05-11 10:25:21 +0800
committerGitHub <[email protected]>2023-05-11 10:25:21 +0800
commit50a4e8c6625694eedfc2f4db20951daed754c4a3 (patch)
tree433eba3562e6ca6c28ca5b5f781a0f0db191db35 /libcpu/aarch64/cortex-a
parent23f91e83ab2df736f03e28466b5acf32c803e80e (diff)
[bsp][phytium]适配rt-thread5.0.0 版本 (#7441)
Co-authored-by: 朱耿宇 <[email protected]>
Diffstat (limited to 'libcpu/aarch64/cortex-a')
-rw-r--r--libcpu/aarch64/cortex-a/entry_point.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcpu/aarch64/cortex-a/entry_point.S b/libcpu/aarch64/cortex-a/entry_point.S
index c1f14c28b0..112987c88d 100644
--- a/libcpu/aarch64/cortex-a/entry_point.S
+++ b/libcpu/aarch64/cortex-a/entry_point.S
@@ -120,7 +120,7 @@ __start:
adr x1, __start /* install early page table */
ldr x0, =~0x1fffff
and x0, x1, x0
- add x1, x0, #0x1000
+ add x1, x0, #0x1000
msr ttbr0_el1, x0
msr ttbr1_el1, x1
@@ -130,7 +130,10 @@ __start:
ldr x2, =__start
GET_PHY x3, __start
sub x3, x3, x2
+#else
+ mov x3,0
#endif
+
ldr x2, =0x40000000 /* map 1G memory for kernel space */
bl rt_hw_mem_setup_early