From e03c22a98cf5deffd0dec2f9ff88a600aa330bc4 Mon Sep 17 00:00:00 2001 From: Lars Munch Date: Sat, 8 May 2010 22:43:35 +0200 Subject: 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 Signed-off-by: Aurelien Jarno --- hw/gumstix.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'hw/gumstix.c') diff --git a/hw/gumstix.c b/hw/gumstix.c index 3fd31f4bfc..b64e04e205 100644 --- a/hw/gumstix.c +++ b/hw/gumstix.c @@ -74,8 +74,6 @@ static void connex_init(ram_addr_t ram_size, exit(1); } - cpu->env->regs[15] = 0x00000000; - /* Interrupt line of NIC is connected to GPIO line 36 */ smc91c111_init(&nd_table[0], 0x04000300, pxa2xx_gpio_in_get(cpu->gpio)[36]); @@ -114,8 +112,6 @@ static void verdex_init(ram_addr_t ram_size, exit(1); } - cpu->env->regs[15] = 0x00000000; - /* Interrupt line of NIC is connected to GPIO line 99 */ smc91c111_init(&nd_table[0], 0x04000300, pxa2xx_gpio_in_get(cpu->gpio)[99]); -- cgit 1.4.1