powerpc/fsl_booke: set the tlb entry for the kernel address in AS1
authorKevin Hao <haokexin@gmail.com>
Tue, 24 Dec 2013 07:12:07 +0000 (15:12 +0800)
committerScott Wood <scottwood@freescale.com>
Thu, 9 Jan 2014 23:52:16 +0000 (17:52 -0600)
commit78a235efdc42ff363de81fdbc171385e8b86b69b
tree5e23fc68849e1ad9f86b10b019a6c844c75e2b54
parentdd189692d40948d6445bbaeb8cb9bf9d15f54dc6
powerpc/fsl_booke: set the tlb entry for the kernel address in AS1

We use the tlb1 entries to map low mem to the kernel space. In the
current code, it assumes that the first tlb entry would cover the
kernel image. But this is not true for some special cases, such as
when we run a relocatable kernel above the 64M or set
CONFIG_KERNEL_START above 64M. So we choose to switch to address
space 1 before setting these tlb entries.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/kernel/head_fsl_booke.S
arch/powerpc/mm/fsl_booke_mmu.c
arch/powerpc/mm/mmu_decl.h