Use wfi for coldboot finish call.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
Atish Patra
2018-12-17 16:35:07 -08:00
parent e0a660ec5b
commit 84971c0bc0
4 changed files with 24 additions and 18 deletions

View File

@@ -122,7 +122,10 @@ _start_warm:
csrw mie, zero
csrw mip, zero
/* HART ID should be within expected limit */
/* set MSIE bit to receive IPI */
li a2, MIP_MSIP
csrw mie, a2
/* HART ID should be withing expected limit */
csrr a6, mhartid
li a5, PLAT_HART_COUNT
bge a6, a5, _start_hang