]> git.proxmox.com Git - qemu.git/commitdiff
hw/arm_boot.c: move initrd load address up to accommodate large kernels
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Apr 2011 15:32:34 +0000 (16:32 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 20 Apr 2011 11:01:04 +0000 (13:01 +0200)
Newer kernels are large enough that they can overlap the address
where qemu places the initrd. Move the initrd up so that there is
enough space for the kernel again.

Unfortunately it's not possible to automatically determine the
size of the kernel if it is compressed, so this is the best we
can do.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/arm_boot.c

index 41e99d1332233bec465b82599c85273fb2db97bf..bfac982e6558e25a10bfb2f7aa04708358dce979 100644 (file)
@@ -15,7 +15,7 @@
 
 #define KERNEL_ARGS_ADDR 0x100
 #define KERNEL_LOAD_ADDR 0x00010000
-#define INITRD_LOAD_ADDR 0x00800000
+#define INITRD_LOAD_ADDR 0x00d00000
 
 /* The worlds second smallest bootloader.  Set r0-r2, then jump to kernel.  */
 static uint32_t bootloader[] = {