From 2eb2fd95001e93c611034f494c7254350ff94d2a Mon Sep 17 00:00:00 2001 From: LEROY Christophe Date: Mon, 20 Apr 2015 07:54:42 +0200 Subject: [PATCH] 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 Signed-off-by: Scott Wood --- Reading git-format-patch failed