--- a/test/interrupt.s Wed Sep 27 10:21:34 2006 +0000 +++ b/test/interrupt.s Fri May 29 18:47:05 2015 +1000 @@ -265,3 +265,35 @@ handler_stack: .skip 0x200 handler_stack_end: + + +.globl _irq_disable +_irq_disable: + mov.l _irqd_and,r1 + mov.l _irqd_or,r2 + stc sr,r0 + and r0,r1 + or r2,r1 + ldc r1,sr + rts + nop + + .align 2 +_irqd_and: + .long 0xefffff0f +_irqd_or: + .long 0x000000f0 + + +.globl _irq_enable +_irq_enable: + mov.l _irqe_and,r1 + stc sr,r0 + and r0,r1 + ldc r1,sr + rts + nop + + .align 2 +_irqe_and: + .long 0xefffff0f