[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 5/6] ppc/pnv: change initrd address
From: |
Cédric Le Goater |
Subject: |
[Qemu-ppc] [PATCH 5/6] ppc/pnv: change initrd address |
Date: |
Mon, 15 Jan 2018 19:04:05 +0100 |
When skiboot starts, it first clears the CPU structs for all possible
CPUs on a system :
for (i = 0; i <= cpu_max_pir; i++)
memset(&cpu_stacks[i].cpu, 0, sizeof(struct cpu_thread));
On POWER9, cpu_max_pir is quite big, 0x7fff, and the skiboot cpu_stacks
array overlaps with the memory region in which QEMU maps the initramfs
file. Move it upwards in memory to keep it safe.
Signed-off-by: Cédric Le Goater <address@hidden>
---
hw/ppc/pnv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
index 80245f57f1ae..98ee3c607ae7 100644
--- a/hw/ppc/pnv.c
+++ b/hw/ppc/pnv.c
@@ -53,7 +53,7 @@
#define FW_MAX_SIZE 0x00400000
#define KERNEL_LOAD_ADDR 0x20000000
-#define INITRD_LOAD_ADDR 0x40000000
+#define INITRD_LOAD_ADDR 0x60000000
static const char *pnv_chip_core_typename(const PnvChip *o)
{
--
2.13.6
- [Qemu-ppc] [PATCH 0/6] ppc/pnv: misc fixes and cleanups for POWER9, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 1/6] ppc/pnv: use POWER9 DD2 processor, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 2/6] ppc/pnv: change core mask for POWER9, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 3/6] ppc/pnv: introduce pnv*_is_power9() helpers, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 4/6] ppc/pnv: fix XSCOM core addressing on POWER9, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 5/6] ppc/pnv: change initrd address,
Cédric Le Goater <=
- [Qemu-ppc] [PATCH 6/6] target/ppc: add support for POWER9 HILE, Cédric Le Goater, 2018/01/15
- Re: [Qemu-ppc] [PATCH 0/6] ppc/pnv: misc fixes and cleanups for POWER9, David Gibson, 2018/01/16