From: Mark Rutland Date: Thu, 20 Dec 2012 16:52:51 +0000 (+0000) Subject: Remove unnecessary ldr from boot wrapper X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fc9e28de1da7c08886ee0cf46d5cbe74ea31b0fe;p=people%2Fjulieng%2Fboot-wrapper-aarch64.git 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 --- 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]