summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-04-01 17:43:19 +0800
committerGitHub <[email protected]>2019-04-01 17:43:19 +0800
commit238c93468f810a78996a9ffe4c61b14397479a2d (patch)
treea9bb8f21e8f7f94c9268b868d60526f36193766c /libcpu
parent996071b80b9d5fe0a71aa2c7cbd4c7b20ba4a494 (diff)
parentb10039f396cb1f32cb0a4b7ee3692bf96332fc1e (diff)
Merge pull request #2530 from qz721/libcpu_cortex_a
Disable the data alignment check.
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/arm/cortex-a/start_gcc.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcpu/arm/cortex-a/start_gcc.S b/libcpu/arm/cortex-a/start_gcc.S
index 0f4ff58364..7464ba6161 100644
--- a/libcpu/arm/cortex-a/start_gcc.S
+++ b/libcpu/arm/cortex-a/start_gcc.S
@@ -51,6 +51,11 @@ _reset:
/* set the cpu to SVC32 mode and disable interrupt */
cps #Mode_SVC
+ /* disable the data alignment check */
+ mrc p15, 0, r1, c1, c0, 0
+ bic r1, #(1<<1)
+ mcr p15, 0, r1, c1, c0, 0
+
/* setup stack */
bl stack_setup