summaryrefslogtreecommitdiff
path: root/components/drivers/include/rtdevice.h
diff options
context:
space:
mode:
authorShell <[email protected]>2024-12-02 18:19:47 +0800
committerMeco Man <[email protected]>2024-12-13 23:38:32 -0500
commit7ff75e21fad3e851090a9f9fcb14d0411949f2f8 (patch)
treee93bf2d1f3216599e9cce9b01e2cb5a6809937e3 /components/drivers/include/rtdevice.h
parent02a114985a8cd10d69c757787ed174c6c3f0cb12 (diff)
feat: arm64: mmu: auto-sensing of best paging stride
Improves the memory mapping process by dynamically selecting the optimal paging stride (4K or 2M) based on virtual address alignment and mapping size. This eliminates the need for upfront stride determination, enhancing flexibility and maintainability in memory management. Changes: - Replaced fixed stride selection logic with a dynamic decision loop. - Removed `npages` calculation and replaced with `remaining_sz` to track unprocessed memory size. - Added assertions to ensure `size` is properly aligned to the smallest page size. - Adjusted loop to dynamically determine and apply the appropriate stride (4K or 2M) for each mapping iteration. - Updated virtual and physical address increments to use the dynamically selected stride. Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'components/drivers/include/rtdevice.h')
0 files changed, 0 insertions, 0 deletions