1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test interprocessor interrupts.
10 #include "riscv_test.h"
11 #include "test_macros.h"
16 # clear pending IPIs then enable interrupts
20 li a0, SR_EI | (1 << (IRQ_IPI + SR_IM_SHIFT))
23 # wait for all cores to boot
26 amoadd.w x0, a1, 0(a0)