Skip to content

Commit 4b2ed0e

Browse files
committed
[libcpu][arm][cortex-a] Fixup mmu setup early
Correct the starting virtual address of _reset alignment to 16MB
1 parent 754d517 commit 4b2ed0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcpu/arm/cortex-a/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void rt_hw_mem_setup_early(rt_uint32_t *early_mmu_talbe,
112112
extern unsigned char _reset;
113113
rt_uint32_t va = (rt_uint32_t) &_reset;
114114
/* The starting virtual address is aligned along 0x1000000. */
115-
va &= (0x1000000 - 1);
115+
va &= ~(0x1000000 - 1);
116116
size -= va;
117117
_init_map_section(early_mmu_talbe, va, size, va + pv_off, normal_attr);
118118
#endif

0 commit comments

Comments
 (0)