aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2012-12-20 16:52:51 +0000
committerMark Rutland <mark.rutland@arm.com>2013-06-05 13:56:14 +0100
commitfc9e28de1da7c08886ee0cf46d5cbe74ea31b0fe (patch)
tree9d203ca4c6096c9854e9899c771f3c4f63b4d1e2
parent73ecb28f15a4c92562573efa1a701043b4a826ac (diff)
downloadboot-wrapper-aarch64-fc9e28de1da7c08886ee0cf46d5cbe74ea31b0fe.tar.gz
Remove unnecessary ldr from boot wrapper
We currently do an ldr from GICC_CTLR to w0, then immediately overwrite w0 with a mov. Reading the GICC_CTLR has no effect on the state of the GIC, so there's no reason to do the ldr. It's also inconsistent with the way we set the GICD_CTLR. Fix this. Signed-off-by: Mark Rutland <mark.rutland@arm.com>
-rw-r--r--boot.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/boot.S b/boot.S
index a1f25e2..7c28e84 100644
--- a/boot.S
+++ b/boot.S
@@ -49,7 +49,6 @@ _start:
str w0, [x1], #4
2: ldr x1, =GIC_CPU_BASE // GICC_CTLR
- ldr w0, [x1]
mov w0, #3 // EnableGrp0 | EnableGrp1
str w0, [x1]