Move setup_initrd from mem_init into memblock_init, that LGTM.
Acked by: Guo Ren (csky)
On Fri, Mar 7, 2025 at 2:52 AM Mike Rapoport wrote:
>
> From: "Mike Rapoport (Microsoft)"
>
> Memory used by initrd should be reserved as soon as possible before
> there any memblock allocations that might
From: "Mike Rapoport (Microsoft)"
Memory used by initrd should be reserved as soon as possible before
there any memblock allocations that might overwrite that memory.
This will also help with pulling out memblock_free_all() to the generic
code and reducing code duplication in arch::mem_init().