v1
2026-10-08
reserved_mem动态分配 · v1
of: reserved_mem 早期动态分配单个数组存储保留内存区域,移除两遍初始化并简化错误检查。
原始补丁链接
子 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