Skip to content

Commit d4b9d48

Browse files
committed
[libcpu][aarch64] Replace x8 with a callee-saved register
1 parent c39e92f commit d4b9d48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libcpu/aarch64/cortex-a/entry_point.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ _start:
113113
#endif
114114

115115
/* Now we are in the end of boot cpu process */
116-
ldr x8, =rtthread_startup
116+
ldr x19, =rtthread_startup
117117
b init_mmu_early
118118
/* never come back */
119119

120120
kernel_start:
121121
/* jump to the PE's system entry */
122122
mov x29, xzr
123-
mov x30, x8
124-
br x8
123+
mov x30, x19
124+
br x19
125125

126126
cpu_idle:
127127
wfe
@@ -169,7 +169,7 @@ _secondary_cpu_entry:
169169
bl init_cpu_stack_early
170170

171171
/* secondary cpu start to startup */
172-
ldr x8, =rt_hw_secondary_cpu_bsp_start
172+
ldr x19, =rt_hw_secondary_cpu_bsp_start
173173
b enable_mmu_early
174174
#endif /* RT_USING_SMP */
175175

0 commit comments

Comments
 (0)