[PATCH v7 14/22] riscv: Clear pending interrupts before enabling IPIs

Rick Chen rickchen36 at gmail.com
Fri Mar 27 10:04:28 CET 2020


> 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: Sean Anderson <seanga2 at gmail.com>
> ---

Reviewed-by: Rick Chen <rick at andestech.com>


More information about the U-Boot mailing list