From b10039f396cb1f32cb0a4b7ee3692bf96332fc1e Mon Sep 17 00:00:00 2001 From: qz721 <295354721@qq.com> Date: Mon, 1 Apr 2019 14:21:59 +0800 Subject: [PATCH] Disable the data alignment check. --- libcpu/arm/cortex-a/start_gcc.S | 5 +++++ 1 file changed, 5 insertions(+) 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 -- GitLab