[bsp][art-pi-smart] 关闭内存对齐检查来避免数据访问异常

This commit is contained in:
liYangYang
2024-03-29 21:43:57 -04:00
committed by GitHub
parent d2c12e2da8
commit 9a1996ef59
3 changed files with 25 additions and 42 deletions
+1
View File
@@ -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