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, SSTATUS_IE | SSTATUS_TIE
26 # advance an LFSR 1000 times
39 csrc sstatus, SSTATUS_IE
41 # make sure the LFSR was computed correctly
61 addi t0, t0, -2*IRQ_TIMER