Message ID | 1593419248-25413-1-git-send-email-ycliang@andestech.com |
---|---|
State | Accepted |
Commit | e491e15a3f4bdf7e22d5e448c3f0cfb733a8dd8b |
Headers | show |
Series | [1/1] riscv: Fix linking error when building u-boot-spl with no SMP support | expand |
diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S index 5f1c220..e3222b1 100644 --- a/arch/riscv/cpu/start.S +++ b/arch/riscv/cpu/start.S @@ -191,6 +191,7 @@ spl_stack_gd_setup: mv sp, s0 #endif +#if CONFIG_IS_ENABLED(SMP) /* set new stack and global data pointer on secondary harts */ spl_secondary_hart_stack_gd_setup: la a0, secondary_hart_relocate @@ -205,6 +206,7 @@ spl_secondary_hart_stack_gd_setup: la a0, secondary_harts_relocation_error jal printf jal hang +#endif /* set new global data pointer on main hart */ 1: mv gp, s0