arm: fix arm kernel boot for non zero start addr
authorLars Munch <lars@segv.dk>
Sat, 8 May 2010 20:43:35 +0000 (22:43 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 31 May 2010 17:40:41 +0000 (19:40 +0200)
commit0e26bbe843347252a4d9e637630e1b3499bf2846
treedbb06162b962ef194e422e40641d559b31087662
parent4bbb521bcfa7d32977d7963f245e17cb5d2ccdc2
arm: fix arm kernel boot for non zero start addr

Booting an arm kernel has been broken a while when booting from non zero start
address. This is due to the order of events: board init loads the kernel and
sets register 15 to the start address and then qemu_system_reset reset the cpu
making register 15 zero again.

This patch fixes the usage of the register 15 start address trick in
combination with arm_load_kernel.

Signed-off-by: Lars Munch <lars@segv.dk>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/arm_boot.c
hw/gumstix.c
hw/mainstone.c
hw/nseries.c
hw/omap_sx1.c
hw/palm.c
hw/spitz.c
hw/tosa.c
target-arm/helper.c