diff options
| author | liYangYang <[email protected]> | 2024-03-30 09:43:57 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-29 21:43:57 -0400 |
| commit | 9a1996ef5979f32052a762464416168c9cf22470 (patch) | |
| tree | a58dc6a6eedca91427ef7f81070b432fc85c1737 /libcpu | |
| parent | d2c12e2da818d991f9829dc1c8aa052e4c6c41ec (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 |
