1 # frv testcase to generate timer interrupt for st $GRk,@($GRi,$GRj)
2 # mach: fr500 fr550 fr400
4 .include "testutils.inc"
10 and_spr_immed -4081,tbr ; clear tbr.tt
12 inc_gr_immed 0x2e0,gr17 ; address of exception handler
14 set_spr_immed 0x7fffffff,lcr
16 and_spr_immed 0xffffff87,psr ; enable external interrupts
17 or_spr_immed 0x00000069,psr ; enable external interrupts
22 again: cmp gr15,gr16,icc0