powerpc/8xx: dont save CR in SCRATCH registers
authorLEROY Christophe <christophe.leroy@c-s.fr>
Mon, 20 Apr 2015 05:54:42 +0000 (07:54 +0200)
committerScott Wood <scottwood@freescale.com>
Wed, 3 Jun 2015 02:37:26 +0000 (21:37 -0500)
commit2eb2fd95001e93c611034f494c7254350ff94d2a
treef31a96d88d48029fb1e67c402fc4fc875b8bc228
parentd5fd9d7d669e81e024737a198d12ff8af4fd89cf
powerpc/8xx: dont save CR in SCRATCH registers

CR only needs to be preserved when checking if we are handling a kernel address.
So we can preserve CR in a register:
- In ITLBMiss, check is done only when CONFIG_MODULES is defined. Otherwise we
don't need to do anything at all with CR.
- We use r10, then we reload SRR0/MD_EPN into r10 when CR is restored

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/kernel/head_8xx.S