mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
PPC: e500: calculate initrd_base like dt_base
While investigating dtb pad issues, I noticed that initrd_base wasn't taking loadaddr into account the way dt_base was. This seems wrong. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
9dd5eba1bc
commit
7e7ec2d290
1 changed files with 2 additions and 1 deletions
|
@ -540,7 +540,8 @@ void ppce500_init(PPCE500Params *params)
|
||||||
|
|
||||||
/* Load initrd. */
|
/* Load initrd. */
|
||||||
if (params->initrd_filename) {
|
if (params->initrd_filename) {
|
||||||
initrd_base = (kernel_size + INITRD_LOAD_PAD) & ~INITRD_PAD_MASK;
|
initrd_base = (loadaddr + kernel_size + INITRD_LOAD_PAD) &
|
||||||
|
~INITRD_PAD_MASK;
|
||||||
initrd_size = load_image_targphys(params->initrd_filename, initrd_base,
|
initrd_size = load_image_targphys(params->initrd_filename, initrd_base,
|
||||||
ram_size - initrd_base);
|
ram_size - initrd_base);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue