Re: [PATCH 4/4] powerpc/boot: don't clobber r6 and r7 in epapr boot

2015-02-10 Thread Jeremy Kerr
Hi Ben, You might want to also remove the use of r8 and r9 which are supposed to contain the OPAL entry and base for debugging purposes. We would also have to restore them before booting the kernel. I'd prefer that to be a separate change, if that's okay - it'd require us to change the kentry

Re: [PATCH 4/4] powerpc/boot: don't clobber r6 and r7 in epapr boot

2015-02-10 Thread Benjamin Herrenschmidt
On Tue, 2015-02-10 at 20:15 +0800, Jeremy Kerr wrote: We use r6 and r7 for epapr boot, but the current pre-C init will clobber both of these. This change does a simple replacement, of r6 - r12 and r7 - r13, so that we hit platform init with these registers intact. Signed-off-by: Jeremy

Re: [PATCH 4/4] powerpc/boot: don't clobber r6 and r7 in epapr boot

2015-02-10 Thread Benjamin Herrenschmidt
On Wed, 2015-02-11 at 12:27 +0800, Jeremy Kerr wrote: Hi Ben, You might want to also remove the use of r8 and r9 which are supposed to contain the OPAL entry and base for debugging purposes. We would also have to restore them before booting the kernel. I'd prefer that to be a separate

[PATCH 4/4] powerpc/boot: don't clobber r6 and r7 in epapr boot

2015-02-10 Thread Jeremy Kerr
We use r6 and r7 for epapr boot, but the current pre-C init will clobber both of these. This change does a simple replacement, of r6 - r12 and r7 - r13, so that we hit platform init with these registers intact. Signed-off-by: Jeremy Kerr j...@ozlabs.org --- arch/powerpc/boot/crt0.S | 24