summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorShell <[email protected]>2024-12-02 15:13:46 +0800
committerRbb666 <[email protected]>2025-03-10 22:45:27 +0800
commitd54a457b04f79efad63d8452f935e3b81ea90006 (patch)
tree3dbda83b89784829e1a333bf2dcfc3d902c256ab /src/SConscript
parentc188ef2b4dccd1c16e5dfd31af33ef695c73dcd4 (diff)
feat: mm: install page in a discrete method
This patch refactors the `rt_page_install` function by delegating specific operations to new helper functions. Besides, the contiguous page regions are now separated to segments of fixed size. The goal is to improve the overall code readability, enhance modularity, and ensure better handling of page installation logic through clearer separation of concerns. Changes: - Introduced `_get_mpr_ready_n_install` to encapsulate memory preparation and page installation logic. - Added `_update_region_list` for updating the installed page registry. - Defined `_PAGE_STRIPE` for optimized region processing. - Modified `rt_page_install` to handle regions in smaller chunks using helper functions for better maintainability. - Improved locking mechanisms with `rt_spin_lock` for thread safety. - Reduced code duplication and clarified shadow region calculations. Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'src/SConscript')
0 files changed, 0 insertions, 0 deletions