浏览代码

Disable the data alignment check.

qz721 6 年之前
父节点
当前提交
b10039f396
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      libcpu/arm/cortex-a/start_gcc.S

+ 5 - 0
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