5 # Set up, trigger, and verify an FIQ interrupt.
7 .include "armutils.inc"
13 # Prepare to handle interrupts.
18 orr r4,r4,#SYSTEM_MODE
21 # Build an instruction to branch to the interrupt handler.
24 .word fiq_interrupt_handler
33 # Write to memory location 0x80000000. A tcl device at that address will wake
34 # up and then trigger an FIQ interrupt.
36 mov r7,#1 @ set to zero by fiq handler
42 # Wait for an FIQ, but don't wait forever.
43 # The FIQ handler will set r7 to zero.
55 # Returned from interrupt. Verify register contents.
59 # All done, print "pass".
64 # FIQ interrupt handler
66 fiq_interrupt_handler:
68 # Make sure we're in FIQ mode.
72 test_h_gr r4, FIQ_MODE
74 # Return from interrupt.
79 # We should have returned from the interrupt, fail if not.