[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 28/58] device tree: give dt more size
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 28/58] device tree: give dt more size |
Date: |
Wed, 14 Sep 2011 10:42:52 +0200 |
We currently load a device tree blob and then just take its size x2 to
account for modifications we do inside. While this is nice and great,
it fails when we have a small device tree as blob and lots of nodes added
in machine init code.
So for now, just make it 20k bigger than it was before. We maybe want to
be more clever about this later.
Signed-off-by: Alexander Graf <address@hidden>
---
device_tree.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/device_tree.c b/device_tree.c
index 751538e..dc69232 100644
--- a/device_tree.c
+++ b/device_tree.c
@@ -41,6 +41,7 @@ void *load_device_tree(const char *filename_path, int *sizep)
}
/* Expand to 2x size to give enough room for manipulation. */
+ dt_size += 10000;
dt_size *= 2;
/* First allocate space in qemu for device tree */
fdt = g_malloc0(dt_size);
--
1.6.0.2
- Re: [Qemu-ppc] [PATCH 01/58] spapr: proper qdevification, (continued)
[Qemu-ppc] [PATCH 29/58] MPC8544DS: Remove CPU nodes, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 56/58] PPC: Fix via-cuda memory registration, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 06/58] PPC: Extend MPIC MMIO range, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 54/58] openpic: Unfold write_IRQreg, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 18/58] PPC: E500: Remove mpc8544_copy_soc_cell, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 07/58] PPC: Fix IPI support in MPIC, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 36/58] pseries: Bugfixes for interrupt numbering in XICS code, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 28/58] device tree: give dt more size,
Alexander Graf <=
[Qemu-ppc] [PATCH 34/58] PPC: Enable to use PAPR with PR style KVM, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 41/58] pseries: Add real mode debugging hcalls, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 17/58] PPC: E500: Use generic kvm function for freq, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 05/58] PPC: Add CPU local MMIO regions to MPIC, Alexander Graf, 2011/09/14