Search
lxdream.org :: lxdream/test/interrupt.s :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/interrupt.s
changeset 815:866c103d72cd
prev233:f8333b94f503
author nkeynes
date Thu Dec 11 23:26:03 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Disable the generational translation cache - I've got no evidence that it
actually helps performance, and it simplifies things to get rid of it (in
particular, translated code doesn't have to worry about being moved now).
file annotate diff log raw
1.1 --- a/test/interrupt.s Wed Sep 27 10:21:34 2006 +0000
1.2 +++ b/test/interrupt.s Thu Dec 11 23:26:03 2008 +0000
1.3 @@ -265,3 +265,35 @@
1.4 handler_stack:
1.5 .skip 0x200
1.6 handler_stack_end:
1.7 +
1.8 +
1.9 +.globl _irq_disable
1.10 +_irq_disable:
1.11 + mov.l _irqd_and,r1
1.12 + mov.l _irqd_or,r2
1.13 + stc sr,r0
1.14 + and r0,r1
1.15 + or r2,r1
1.16 + ldc r1,sr
1.17 + rts
1.18 + nop
1.19 +
1.20 + .align 2
1.21 +_irqd_and:
1.22 + .long 0xefffff0f
1.23 +_irqd_or:
1.24 + .long 0x000000f0
1.25 +
1.26 +
1.27 +.globl _irq_enable
1.28 +_irq_enable:
1.29 + mov.l _irqe_and,r1
1.30 + stc sr,r0
1.31 + and r0,r1
1.32 + ldc r1,sr
1.33 + rts
1.34 + nop
1.35 +
1.36 + .align 2
1.37 +_irqe_and:
1.38 + .long 0xefffff0f
.