diff options
| author | liYangYang <[email protected]> | 2024-03-30 09:43:57 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-04-16 22:38:10 -0400 |
| commit | 50d72486271777ff13eee9b533e4841695496d60 (patch) | |
| tree | fae8e3e996fc6ff8c6fe390ef943198bdf4d8e0f /libcpu | |
| parent | 3f53a3a7f10be72721817342fb3fe1ac5a1c3bcf (diff) | |
[bsp][art-pi-smart] 关闭内存对齐检查来避免数据访问异常
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/arm/cortex-a/start_gcc.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcpu/arm/cortex-a/start_gcc.S b/libcpu/arm/cortex-a/start_gcc.S index 3b126a3774..2f6add6058 100644 --- a/libcpu/arm/cortex-a/start_gcc.S +++ b/libcpu/arm/cortex-a/start_gcc.S @@ -260,6 +260,7 @@ enable_mmu_page_table_early: mcr p15, 0, r0, c7, c5, 6 /* bpiall */ mrc p15, 0, r0, c1, c0, 0 + bic r0, r0, #0x7 /* clear bit1~3 */ orr r0, #((1 << 12) | (1 << 11)) /* instruction cache, branch prediction */ orr r0, #((1 << 2) | (1 << 0)) /* data cache, mmu enable */ mcr p15, 0, r0, c1, c0, 0 |
