boot: Correct ramdisk address

We must use the ramdisk address for the initrd_addr field, not the kernel
address. Fix this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: e05cda3004 ("boot: pxe: Refactor label_run_boot() to avoid")
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass
2025-03-06 09:03:28 -07:00
parent b7ab033423
commit eaad588780

View File

@@ -601,7 +601,8 @@ static int label_run_boot(struct pxe_context *ctx, struct pxe_label *label,
if (initrd_addr_str) {
bmi.conf_ramdisk = initrd_str;
bootm_x86_set(&bmi, initrd_addr, hextoul(kernel_addr, NULL));
bootm_x86_set(&bmi, initrd_addr,
hextoul(initrd_addr_str, NULL));
bootm_x86_set(&bmi, initrd_size,
hextoul(initrd_filesize, NULL));
}