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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user