Re: [PATCH 3/4] powerpc/boot: Fix stack corruption in epapr entry point

2015-02-10 Thread Benjamin Herrenschmidt
On Tue, 2015-02-10 at 20:15 +0800, Jeremy Kerr wrote: > Currently, a 64-bit little-endian zImage.epapr won't boot in epapr mode, > as as we never return from platform_init. > > Before entering C, we initialise our stack by setting r1 16 bytes below > the end of the _bss_stack: > > stwur

[PATCH 3/4] powerpc/boot: Fix stack corruption in epapr entry point

2015-02-10 Thread Jeremy Kerr
Currently, a 64-bit little-endian zImage.epapr won't boot in epapr mode, as as we never return from platform_init. Before entering C, we initialise our stack by setting r1 16 bytes below the end of the _bss_stack: stwu r0,-16(r1) /* establish a stack frame */ However, the called function