From d4b9d483f315bfca6bdfa4b20c57231ff05a93f0 Mon Sep 17 00:00:00 2001 From: Tang Qingmei Date: Sat, 27 Dec 2025 22:17:43 +0800 Subject: [PATCH] [libcpu][aarch64] Replace x8 with a callee-saved register --- libcpu/aarch64/cortex-a/entry_point.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libcpu/aarch64/cortex-a/entry_point.S b/libcpu/aarch64/cortex-a/entry_point.S index b6eb5ee0da4..6a5ad3c63bd 100644 --- a/libcpu/aarch64/cortex-a/entry_point.S +++ b/libcpu/aarch64/cortex-a/entry_point.S @@ -113,15 +113,15 @@ _start: #endif /* Now we are in the end of boot cpu process */ - ldr x8, =rtthread_startup + ldr x19, =rtthread_startup b init_mmu_early /* never come back */ kernel_start: /* jump to the PE's system entry */ mov x29, xzr - mov x30, x8 - br x8 + mov x30, x19 + br x19 cpu_idle: wfe @@ -169,7 +169,7 @@ _secondary_cpu_entry: bl init_cpu_stack_early /* secondary cpu start to startup */ - ldr x8, =rt_hw_secondary_cpu_bsp_start + ldr x19, =rt_hw_secondary_cpu_bsp_start b enable_mmu_early #endif /* RT_USING_SMP */