summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoffer Dall <cdall@cs.columbia.edu>2011-04-19 05:58:21 +0200
committerChristoffer Dall <cdall@cs.columbia.edu>2011-04-19 05:58:21 +0200
commit446e06a134c48a549746e56ec7965b1d8a473940 (patch)
tree1022fa3e0727c5956bbadedd37ce0f387c2c1236
parent71049a0834ec48d4eb0f03efc34fbd2ae3d1a362 (diff)
Init GIC priority mask field to 0x80 in secure mode
-rw-r--r--boot.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/boot.S b/boot.S
index e5cbd6b..78ca6ff 100644
--- a/boot.S
+++ b/boot.S
@@ -48,6 +48,12 @@ _start:
@ Hypervisor / TrustZone initialization
@
2:
+ @ Set GIC priority mask bit [7] = 1
+ ldr r0, =0x2c002000 @ CPU GIC base
+ mov r1, #0x80
+ str r1, [r0, #0x4] @ GIC ICCPMR
+
+ @ Change to NS-mode
mov r0, #0xf0000000
mcr p15, 0, r0, c12, c0, 1 @ Monitor vector base address
mov r7, #0xffffffff