Re: [PATCH v2 4/8] powerpc/fsl_booke: set the tlb entry for the kernel address in AS1

2013-08-03 Thread Kevin Hao
On Fri, Jul 26, 2013 at 06:37:10PM -0500, Scott Wood wrote: > On 07/04/2013 07:54:10 AM, Kevin Hao wrote: > >--- a/arch/powerpc/kernel/head_fsl_booke.S > >+++ b/arch/powerpc/kernel/head_fsl_booke.S > >@@ -1172,6 +1172,87 @@ __secondary_hold_acknowledge: > > #endif > > > > /* > >+ * Create a tbl

Re: [PATCH v2 4/8] powerpc/fsl_booke: set the tlb entry for the kernel address in AS1

2013-07-26 Thread Scott Wood
On 07/04/2013 07:54:10 AM, Kevin Hao wrote: 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 256M or se

[PATCH v2 4/8] powerpc/fsl_booke: set the tlb entry for the kernel address in AS1

2013-07-04 Thread Kevin Hao
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 256M or set CONFIG_KERNEL_START above 256M. So we choose