[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PULL 5/9] PPC e500: Fix gap between u-boot and kernel
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PULL 5/9] PPC e500: Fix gap between u-boot and kernel |
Date: |
Thu, 15 Mar 2018 15:18:59 +1100 |
From: David Engraf <address@hidden>
This patch moves the gap between u-boot and kernel at the correct location.
Signed-off-by: David Engraf <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/ppc/e500.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index 43c15d18c4..bdef2bddc6 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -1009,6 +1009,10 @@ void ppce500_init(MachineState *machine, PPCE500Params
*params)
}
cur_base = loadaddr + payload_size;
+ if (cur_base < (32 * 1024 * 1024)) {
+ /* u-boot occupies memory up to 32MB, so load blobs above */
+ cur_base = (32 * 1024 * 1024);
+ }
/* Load bare kernel only if no bios/u-boot has been provided */
if (machine->kernel_filename && !kernel_as_payload) {
@@ -1025,11 +1029,6 @@ void ppce500_init(MachineState *machine, PPCE500Params
*params)
cur_base += kernel_size;
}
- if (cur_base < (32 * 1024 * 1024)) {
- /* u-boot occupies memory up to 32MB, so load blobs above */
- cur_base = (32 * 1024 * 1024);
- }
-
/* Load initrd. */
if (machine->initrd_filename) {
initrd_base = (cur_base + INITRD_LOAD_PAD) & ~INITRD_PAD_MASK;
--
2.14.3
- [Qemu-ppc] [PULL 0/9] ppc-for-2.12 queue 20180315, David Gibson, 2018/03/15
- [Qemu-ppc] [PULL 2/9] tests/boot-serial: Check the 40p machine, too, David Gibson, 2018/03/15
- [Qemu-ppc] [PULL 3/9] hw/ppc/prep: Fix implicit creation of "-drive if=scsi" devices, David Gibson, 2018/03/15
- [Qemu-ppc] [PULL 4/9] hw/misc/macio: Mark the macio devices with user_creatable = false, David Gibson, 2018/03/15
- [Qemu-ppc] [PULL 1/9] sii3112: Remove unneeded exit function, David Gibson, 2018/03/15
- [Qemu-ppc] [PULL 8/9] tests/boot-serial: Test the sam460ex board, David Gibson, 2018/03/15
- [Qemu-ppc] [PULL 6/9] hw/ppc/spapr: Allow "spapr-vlan" as NIC model name beside "ibmveth", David Gibson, 2018/03/15
- [Qemu-ppc] [PULL 5/9] PPC e500: Fix gap between u-boot and kernel,
David Gibson <=
- [Qemu-ppc] [PULL 9/9] target/ppc: fix tlbsync to check privilege level depending on GTSE, David Gibson, 2018/03/15
- [Qemu-ppc] [PULL 7/9] ppc440_pcix: Change some error_report to qemu_log_mask(LOG_UNIMP, ...), David Gibson, 2018/03/15
- Re: [Qemu-ppc] [PULL 0/9] ppc-for-2.12 queue 20180315, Peter Maydell, 2018/03/16
- Re: [Qemu-ppc] [PULL 0/9] ppc-for-2.12 queue 20180315, David Gibson, 2018/03/17
- Re: [Qemu-ppc] [PULL 0/9] ppc-for-2.12 queue 20180315, Peter Maydell, 2018/03/17
- Re: [Qemu-ppc] [PULL 0/9] ppc-for-2.12 queue 20180315, BALATON Zoltan, 2018/03/17
- Re: [Qemu-ppc] [PULL 0/9] ppc-for-2.12 queue 20180315, BALATON Zoltan, 2018/03/17
- Re: [Qemu-ppc] [PULL 0/9] ppc-for-2.12 queue 20180315, David Gibson, 2018/03/18
- Re: [Qemu-ppc] [PULL 0/9] ppc-for-2.12 queue 20180315, Thomas Huth, 2018/03/19
- Re: [Qemu-ppc] [PULL 0/9] ppc-for-2.12 queue 20180315, David Gibson, 2018/03/18