1 #*****************************************************************************
3 #-----------------------------------------------------------------------------
5 # Test interprocessor interrupts.
8 #include "riscv_test.h"
9 #include "test_macros.h"
14 # clear pending IPIs then enable interrupts
21 li a0, SR_EI | (1 << (IRQ_TIMER + SR_IM_SHIFT))
24 # advance an LFSR 1000 times
42 beqz s9, fail # make sure we took at least one interrupt
44 bne s4, s1, fail # make sure the LFSR period was correct
52 li t1, 0x8000000000000007