WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libcpu/arm/cortex-a/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Copy link

Copilot AI Jan 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment states "aligned along 0x1000000" but could be more precise. Consider updating it to "aligned down to 0x1000000 (16MB) boundary" to make the direction of alignment and the boundary size clearer for future maintainers.

中文:注释表述为"aligned along 0x1000000",但可以更精确。建议更新为"aligned down to 0x1000000 (16MB) boundary",以便更清楚地说明对齐方向和边界大小,方便后续维护。

Suggested change
/* The starting virtual address is aligned along 0x1000000. */
/* The starting virtual address is aligned down to 0x1000000 (16MB) boundary. */

Copilot uses AI. Check for mistakes.
va &= (0x1000000 - 1);
va &= ~(0x1000000 - 1);
size -= va;
_init_map_section(early_mmu_talbe, va, size, va + pv_off, normal_attr);
#endif
Expand Down
Loading