Drop permissions
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 30 Dec 2016 19:40:48 +0000 (11:40 -0800)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 30 Dec 2016 19:40:48 +0000 (11:40 -0800)
arm_chainloader/start.s

index 782b138..ce8b242 100644 (file)
@@ -54,6 +54,12 @@ L_all_cores_start:
 \r
 L_core0:\r
        mov sp, #(MEM_STACK_END)\r
+\r
+        /* we are loaded in secure supervisor mode -- drop permissions */\r
+        mrc p15, 0, r0, c1, c1, 0\r
+        orr r0, r0, #1\r
+        mcr p15, 0, r0, c1, c1, 0\r
+\r
        b _firmware_rendezvous\r
 \r
 L_deadloop:\r
This page took 0.026416 seconds and 4 git commands to generate.