diff options
| author | laidene <[email protected]> | 2025-12-26 10:42:15 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2026-01-10 13:30:09 +0800 |
| commit | 68a5c6a83b2b944d23dbcec1e6f31d846814b753 (patch) | |
| tree | 707648a069531622880f4878cc792cbec545195b /libcpu | |
| parent | 9c60c5fb067cbe4cd7ad643405957ce3fac3eeaf (diff) | |
[libcpu][arm][cortex-a] Fixup mmu setup early
Correct the starting virtual address of _reset alignment to 16MB
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/arm/cortex-a/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/arm/cortex-a/mmu.c b/libcpu/arm/cortex-a/mmu.c index 19afb39e2e..3b4a364fe7 100644 --- a/libcpu/arm/cortex-a/mmu.c +++ b/libcpu/arm/cortex-a/mmu.c @@ -112,7 +112,7 @@ void rt_hw_mem_setup_early(rt_uint32_t *early_mmu_talbe, extern unsigned char _reset; rt_uint32_t va = (rt_uint32_t) &_reset; /* The starting virtual address is aligned along 0x1000000. */ - va &= (0x1000000 - 1); + va &= ~(0x1000000 - 1); size -= va; _init_map_section(early_mmu_talbe, va, size, va + pv_off, normal_attr); #endif |
