diff options
Diffstat (limited to 'src/arch/riscv/bootblock.S')
-rw-r--r-- | src/arch/riscv/bootblock.S | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/arch/riscv/bootblock.S b/src/arch/riscv/bootblock.S index 277c3910c0..7f84215dac 100644 --- a/src/arch/riscv/bootblock.S +++ b/src/arch/riscv/bootblock.S @@ -24,13 +24,6 @@ .global _estack .globl _start _start: - csrr a0, mhartid - li a3, 0 - beq a0, a3, _hart_zero -_hart_loop: - j _hart_loop -_hart_zero: - # The boot ROM may pass the following arguments to coreboot: # a0: the value of mhartid # a1: a pointer to the flattened devicetree @@ -59,6 +52,9 @@ _hart_zero: csrr a0, mhartid call hls_init + li a0, CONFIG_RISCV_WORKING_HARTID + call smp_pause + # initialize entry of interrupt/exception la t0, trap_entry csrw mtvec, t0 |