summaryrefslogtreecommitdiffstats
path: root/src/image
diff options
context:
space:
mode:
authorMichael Brown2025-05-21 15:26:56 +0200
committerMichael Brown2025-05-21 15:31:18 +0200
commit9bc559850c53eb630f9bb1089c98bae1d776d3d8 (patch)
tree3f387e3197cfcc7689c743ca2d638a0b3e7e5580 /src/image
parent[initrd] Move initrd reshuffling to be architecture-independent code (diff)
downloadipxe-9bc559850c53eb630f9bb1089c98bae1d776d3d8.tar.gz
ipxe-9bc559850c53eb630f9bb1089c98bae1d776d3d8.tar.xz
ipxe-9bc559850c53eb630f9bb1089c98bae1d776d3d8.zip
[fdt] Allow an initrd to be specified when creating a device tree
Allow an initrd location to be specified in our constructed device tree via the "linux,initrd-start" and "linux,initrd-end" properties. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/image')
-rw-r--r--src/image/lkrn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image/lkrn.c b/src/image/lkrn.c
index f8929f3b3..4f04c3ff6 100644
--- a/src/image/lkrn.c
+++ b/src/image/lkrn.c
@@ -153,7 +153,7 @@ static int lkrn_fdt ( struct image *image, struct lkrn_context *ctx ) {
int rc;
/* Build device tree (which may change system memory map) */
- if ( ( rc = fdt_create ( &fdt, image->cmdline ) ) != 0 )
+ if ( ( rc = fdt_create ( &fdt, image->cmdline, 0, 0 ) ) != 0 )
goto err_create;
len = be32_to_cpu ( fdt->totalsize );