summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoffer Dall <cdall@cs.columbia.edu>2011-04-23 12:26:45 +0200
committerChristoffer Dall <cdall@cs.columbia.edu>2011-04-28 13:15:29 +0200
commitcaf2b243c4e2dad98a375d455764d9859e6bee5e (patch)
tree8afdf4b478e2cb0c5dc3d9f08819eaca9ef75cfa
parentf6a4aa162284a89ea25dd6c3dc7398efb8c5bc6e (diff)
Allow co-processor access from non-secure mode
-rw-r--r--boot.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/boot.S b/boot.S
index 3e5f33e..1a906d7 100644
--- a/boot.S
+++ b/boot.S
@@ -65,6 +65,12 @@ _start:
mov r1, #0x80
str r1, [r0, #0x4] @ GIC ICCPMR
+ @ Set NSACR to allow coprocessor access from non-secure
+ mrc p15, 0, r0, c1, c1, 2
+ ldr r1, =0x3fff
+ orr r0, r0, r1
+ mcr p15, 0, r0, c1, c1, 2
+
@ Change to NS-mode
mov r0, #0xf0000000
mcr p15, 0, r0, c12, c0, 1 @ Monitor vector base address