Message ID | 1308059700-10839-15-git-send-email-Joakim.Tjernlund@transmode.se (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/arch/ppc/kernel/head_8xx.S b/arch/ppc/kernel/head_8xx.S index a4290b5..7f9e647 100644 --- a/arch/ppc/kernel/head_8xx.S +++ b/arch/ppc/kernel/head_8xx.S @@ -355,12 +355,17 @@ InstructionTLBMiss: /* If we are faulting a kernel address, we have to use the * kernel page tables. */ +#ifdef CONFIG_MODULES + /* Since we PIN the first 8MB text, we only get ITLB misses + * for modules + */ andi. r21, r20, 0x0800 /* Address >= 0x80000000 */ beq 3f lis r21, swapper_pg_dir@h ori r21, r21, swapper_pg_dir@l rlwimi r20, r21, 0, 2, 19 3: +#endif lwz r21, 0(r20) /* Get the level 1 entry */ rlwinm. r20, r21,0,0,19 /* Extract page descriptor page address */
Don't check for kernel space if no modules. Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se> --- arch/ppc/kernel/head_8xx.S | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)