]> git.proxmox.com Git - qemu.git/commit
arm_boot: Change initrd load address to "halfway through RAM"
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Oct 2012 15:29:38 +0000 (16:29 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 1 Nov 2012 16:04:11 +0000 (17:04 +0100)
commitfc53b7d4b7fe409acae7d8d55a868eb5c696d71c
treef8032a9aa5006003121159e1599feb351a22ec1d
parent46a3f234134a708883c4ace95d739f6226bb17f0
arm_boot: Change initrd load address to "halfway through RAM"

To avoid continually having to bump the initrd load address
to account for larger kernel images, put the initrd halfway
through RAM. This allows large kernels on new boards with lots
of RAM to work OK, without breaking existing usecases for
boards with only 32MB of RAM.

Note that this change fixes in passing a bug where we were
passing an overly large max_size to load_image_targphys()
for the initrd, which meant that we wouldn't correctly refuse
to load an enormous initrd that didn't actually fit into RAM.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Tested-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/arm-misc.h
hw/arm_boot.c