Usage Examples
DSP/BIOS for OMAP 2420
D-13
D.6.4
Assembly Language ISR Using HWI_enter, HWI_exit
This assembly code example uses the MIR mask arguments.
;#
;# DSP/BIOS Level 2 interrupt example
;#
; Include files
.include log.h55
.include hwi.h55
.include c55.h55
.global _l2FiqFunc
.global _intCount
.ref _trace
.ref _reportInfo
_myIsr:
HWI_enter C55_ALL_AR_DR_REGS, C55_ALL_ACC_REGS,
C55_ALL_MISC1_REGS, C55_ALL_MISC2_REGS,
C55_ALL_MISC3_REGS,
0x0000, ; ier0 interrupt mask unchanged
0x0000, ; ier1 interrupt mask unchanged
0xffffffff ; all level 2 interrupts masked
;
; Your code here
;
HWI_exit C55_ALL_AR_DR_REGS, C55_ALL_ACC_REGS,
C55_ALL_MISC1_REGS, C55_ALL_MISC2_REGS,
C55_ALL_MISC3_REGS,
0x0000, ; ier0 interrupt mask unchanged
0x0000, ; ier1 interrupt mask unchanged
0xffffffff ; all level 2 interrupts restored