]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[initrd] Move initrd reshuffling to be architecture-independent code
authorMichael Brown <mcb30@ipxe.org>
Wed, 21 May 2025 11:07:24 +0000 (12:07 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 21 May 2025 11:12:16 +0000 (12:12 +0100)
commitc1cd54ad74200a132aff5b3d0cfce8662dec5fe4
tree04c0a6a00eff70564047ca785871417ccdc94d14
parentd15a11f3a4f49999447e9bd0c499455d1d9ef078
[initrd] Move initrd reshuffling to be architecture-independent code

There is nothing x86-specific in initrd.c, and a variant of the
reshuffling logic will be required for executing bare-metal kernels on
RISC-V and AArch64.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/image/bzimage.c
src/arch/x86/include/bits/errfile.h
src/image/initrd.c [moved from src/arch/x86/image/initrd.c with 99% similarity]
src/include/ipxe/errfile.h
src/include/ipxe/initrd.h [moved from src/arch/x86/include/initrd.h with 84% similarity]