]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/boot: don't clobber r6 and r7 in epapr boot
authorJeremy Kerr <jk@ozlabs.org>
Wed, 11 Feb 2015 04:55:44 +0000 (12:55 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Mar 2015 07:58:35 +0000 (18:58 +1100)
commit7f664cf9e422105644818b180349e3b10a370de7
treeca7a77a0a48bf09f7193dd79e9666bf0dd68f241
parent8c06f0d910ca628b657dc964a7347e70070dc7d6
powerpc/boot: don't clobber r6 and r7 in epapr boot

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 <jk@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/crt0.S