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
17 li s8, 0 # number of taken timer interrupts
18 li s9, 10 # how many interrupts to run for
23 li a0, SR_EI | (1 << (IRQ_TIMER + SR_IM_SHIFT))
26 # advance an LFSR 1000 times
42 # make sure the LFSR was computed correctly
58 li t1, 0x8000000000000007