Skip to content
Commit 94726303 authored by Sean Anderson's avatar Sean Anderson Committed by Andes
Browse files

riscv: Clear pending interrupts before enabling IPIs



On some platforms (k210), the previous stage bootloader may have not
cleared pending IPIs before transferring control to U-Boot. This can cause
race conditions, as multiple harts all attempt to initialize the IPI
controller at once. This patch clears IPIs before enabling them, ensuring
that only one hart modifies shared memory at once.

Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
Reviewed-by: default avatarRick Chen <rick@andestech.com>
parent 309c79f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment