commit | 2eb2fd95001e93c611034f494c7254350ff94d2a | [log] [tgz] |
---|---|---|
author | LEROY Christophe <christophe.leroy@c-s.fr> | Mon Apr 20 07:54:42 2015 +0200 |
committer | Scott Wood <scottwood@freescale.com> | Tue Jun 02 21:37:26 2015 -0500 |
tree | f31a96d88d48029fb1e67c402fc4fc875b8bc228 | |
parent | d5fd9d7d669e81e024737a198d12ff8af4fd89cf [diff] |
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>