forked from Mirrors/opensbi
Write MSIP by using memory-mapped control register
The machine-level MSIP bits are written by accesses to memory-mapped control registers. Only use CSR instruction for SSIP and USIP. There is no effect that using CSR instruction to write MSIP when testing on unleashed board and QEMU. Signed-off-by: Zong Li <zong.li@sifive.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
@@ -341,7 +341,7 @@ void sbi_hart_wait_for_coldboot(struct sbi_scratch *scratch, u32 hartid)
|
||||
spin_unlock(&coldboot_wait_bitmap_lock);
|
||||
} while (!(mipval & MIP_MSIP));
|
||||
|
||||
csr_clear(CSR_MIP, MIP_MSIP);
|
||||
sbi_platform_ipi_clear(plat, hartid);
|
||||
}
|
||||
|
||||
void sbi_hart_wake_coldboot_harts(struct sbi_scratch *scratch, u32 hartid)
|
||||
|
Reference in New Issue
Block a user