]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[initrd] Split out initrd construction from bzimage.c
authorMichael Brown <mcb30@ipxe.org>
Fri, 23 May 2025 11:13:02 +0000 (12:13 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 23 May 2025 11:31:46 +0000 (12:31 +0100)
commit4a39b877dd165cc903da2e15cb1c42d1d115cc80
tree7886a3d5fba2212561739d99c32ebaf1f66ddcaa
parent11929389e4298bbe4b7dce09ef2f2c4368c009c1
[initrd] Split out initrd construction from bzimage.c

Provide a reusable function initrd_load_all() to load all initrds
(including any constructed CPIO headers) into a contiguous memory
region, and support functions to find the constructed total length and
permissible post-reshuffling load address range.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/image/bzimage.c
src/image/initrd.c
src/include/ipxe/initrd.h