diff options
author | Greg Bellows <greg.bellows@linaro.org> | 2015-03-27 09:33:07 -0500 |
---|---|---|
committer | Greg Bellows <greg.bellows@linaro.org> | 2015-03-27 09:33:07 -0500 |
commit | acaf1f34c06a85e8d8ce6b9351dd4a76d6850f66 (patch) | |
tree | c88dc27644ed5eb0bf2a8425bc1ff00e91cc99e9 | |
parent | 6f6b1e156d095f673c48705fd7ccb6df9d067b75 (diff) |
Fix RW permission issue
Signed-off-by: Greg Bellows <greg.bellows@linaro.org>
-rw-r--r-- | aarch64/el1_common/el1_init.S | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/aarch64/el1_common/el1_init.S b/aarch64/el1_common/el1_init.S index ebb2866..0faa564 100644 --- a/aarch64/el1_common/el1_init.S +++ b/aarch64/el1_common/el1_init.S @@ -23,7 +23,6 @@ el1_init: ldr x10, =EL1_PGTBL_BASE+0x1000 str x10, [sp] -loc: /* Save the input SMC interop buf pointer */ str x4, [sp, #-8]! @@ -49,7 +48,7 @@ el1_init_mmu: el1_map_init: /* Direct map the init code */ ldr x0, =_EL1_INIT_BASE - mov x1, #(PTE_PAGE|PTE_ACCESS|PTE_USER_RW) + mov x1, #(PTE_PAGE|PTE_ACCESS|PTE_USER_RO) ldr x2, =_EL1_INIT_SIZE bl map_pa_range @@ -58,7 +57,7 @@ el1_map_flash: * the MMU has been enabled. */ ldr x0, =_EL1_FLASH_TEXT - mov x1, #(PTE_PAGE|PTE_ACCESS|PTE_USER_RW) + mov x1, #(PTE_PAGE|PTE_ACCESS|PTE_USER_RO) ldr x2, =_EL1_TEXT_SIZE bl map_pa_range |