arch/riscv: Only execute on hart 0 for now

Only execute coreboot on hart 0 until synchronisation between hart's is ready.
Change-Id: I2181e79572fbb9cc7bee39a3c2298c0dae6c1658
Signed-off-by: Philipp Hug <philipp@hug.cx>
Reviewed-on: https://review.coreboot.org/28605
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Philipp Hug 2018-07-07 13:34:28 +02:00 committed by Ronald G. Minnich
parent 2326a284ac
commit 26036d9db3
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,12 @@
.global _estack .global _estack
.globl _start .globl _start
_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: # The boot ROM may pass the following arguments to coreboot:
# a0: the value of mhartid # a0: the value of mhartid