commit | 84df2e1f615fa3609294a0933ff3ae55b9a47881 | [log] [tgz] |
---|---|---|
author | Sean Anderson <seanga2@gmail.com> | Wed Jun 24 06:41:17 2020 -0400 |
committer | Andes <uboot@andestech.com> | Wed Jul 01 15:01:21 2020 +0800 |
tree | 15f2ed2668c54a0f7dc594d8a555890a817434f9 | |
parent | 5aa0074e9334bcc140943a25e02fd5379583f656 [diff] |
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: Sean Anderson <seanga2@gmail.com> Reviewed-by: Rick Chen <rick@andestech.com>