v2
2026-10-09
reserved_mem动态分配 · v2
of: reserved_mem v2 用早期动态数组单次扫描保留内存,移除两遍初始化并整理分配辅助函数。
原始补丁链接
子 Patch(2)
1/2
of: reserved_mem: group allocation helpers together
Move __reserved_mem_alloc_in_range() and __reserved_mem_alloc_size() right after __reserved_mem_reserve_reg(), so the functions that reserve reserved regions are grouped together and defined before th
2/2
of: reserved_mem: allocate and map the reserved_mem array early
Get rid of the static, limited-size reserved_mem array and replace it with array allocated by memblock_alloc_raw() and accessed through a temporary early_memremap() mapping. Such mapping is needed for