]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[initrd] Swap initrds entirely in-place via triple reversal
authorMichael Brown <mcb30@ipxe.org>
Thu, 22 May 2025 12:27:03 +0000 (13:27 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 22 May 2025 15:28:15 +0000 (16:28 +0100)
commit9231d8c95247e88273544b6e6f4ef8b4ce6196ba
tree4b733f3a9d2907652a487177627bf41a6608da3e
parent11e01f0652daaf198317e2e13c8bb1d19f664ce9
[initrd] Swap initrds entirely in-place via triple reversal

Eliminate the requirement for free space when reshuffling initrds by
swapping adjacent initrds using an in-place triple reversal.

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