Commit af4fd79b authored by Catalin Marinas's avatar Catalin Marinas

Thumb-2: Implement the unified support for the RealView boards

This patch adds the ARM/Thumb-2 unified support the RealView boards.
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 5bf0456a
......@@ -19,6 +19,7 @@
.macro addruart,rx
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
ite eq
moveq \rx, #0x10000000
movne \rx, #0xf0000000 @ virtual base
#if defined(CONFIG_MACH_REALVIEW_EB) || defined(CONFIG_MACH_REALVIEW_PB11MP)
......
......@@ -49,8 +49,11 @@
bic \irqnr, \irqstat, #0x1c00
cmp \irqnr, #29
it cc
cmpcc \irqnr, \irqnr
it ne
cmpne \irqnr, \tmp
it cs
cmpcs \irqnr, \irqnr
.endm
......@@ -65,7 +68,9 @@
.macro test_for_ipi, irqnr, irqstat, base, tmp
bic \irqnr, \irqstat, #0x1c00
cmp \irqnr, #16
it cc
strcc \irqstat, [\base, #GIC_CPU_EOI]
it cs
cmpcs \irqnr, \irqnr
.endm
......@@ -75,6 +80,7 @@
bic \irqnr, \irqstat, #0x1c00
mov \tmp, #0
cmp \irqnr, #29
itt eq
moveq \tmp, #1
streq \irqstat, [\base, #GIC_CPU_EOI]
cmp \tmp, #0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment