summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-realview/entry-macro.S
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-11-09 10:50:29 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-11-09 10:50:29 +0000
commit2a98beb6390aef8fad85103ea25b3b1ace8015b5 (patch)
tree09f3e0de9a49f0f61d7f44c6c03218bf29f5d1dd /include/asm-arm/arch-realview/entry-macro.S
parent37ee16ae93a3e4ae7dd51beb81d249f5f12a55c2 (diff)
downloadop-kernel-dev-2a98beb6390aef8fad85103ea25b3b1ace8015b5.zip
op-kernel-dev-2a98beb6390aef8fad85103ea25b3b1ace8015b5.tar.gz
[ARM SMP] Add local timer support for Realview MPcore
Add platform specific parts for local timer support for the Realview board. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-realview/entry-macro.S')
-rw-r--r--include/asm-arm/arch-realview/entry-macro.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-arm/arch-realview/entry-macro.S b/include/asm-arm/arch-realview/entry-macro.S
index 4df469b..6288fad 100644
--- a/include/asm-arm/arch-realview/entry-macro.S
+++ b/include/asm-arm/arch-realview/entry-macro.S
@@ -61,3 +61,14 @@
strcc \irqstat, [\base, #GIC_CPU_EOI]
cmpcs \irqnr, \irqnr
.endm
+
+ /* As above, this assumes that irqstat and base are preserved.. */
+
+ .macro test_for_ltirq, irqnr, irqstat, base, tmp
+ bic \irqnr, \irqstat, #0x1c00
+ mov \tmp, #0
+ cmp \irqnr, #29
+ moveq \tmp, #1
+ streq \irqstat, [\base, #GIC_CPU_EOI]
+ cmp \tmp, #0
+ .endm
OpenPOWER on IntegriCloud