Commit 0332f000 authored by Kumar Gala's avatar Kumar Gala

powerpc/fsl: Minor TLBSYNC cleanup for FSL Book-E

Use the TLBSYNC macro defined in ppc_asm.h rather than our own ifdefs.
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 6cfd8990
...@@ -151,16 +151,11 @@ skpinv: addi r6,r6,1 /* Increment */ ...@@ -151,16 +151,11 @@ skpinv: addi r6,r6,1 /* Increment */
/* Invalidate TLB0 */ /* Invalidate TLB0 */
li r6,0x04 li r6,0x04
tlbivax 0,r6 tlbivax 0,r6
#ifdef CONFIG_SMP TLBSYNC
tlbsync
#endif
/* Invalidate TLB1 */ /* Invalidate TLB1 */
li r6,0x0c li r6,0x0c
tlbivax 0,r6 tlbivax 0,r6
#ifdef CONFIG_SMP TLBSYNC
tlbsync
#endif
msync
/* 3. Setup a temp mapping and jump to it */ /* 3. Setup a temp mapping and jump to it */
andi. r5, r3, 0x1 /* Find an entry not used and is non-zero */ andi. r5, r3, 0x1 /* Find an entry not used and is non-zero */
...@@ -238,10 +233,7 @@ skpinv: addi r6,r6,1 /* Increment */ ...@@ -238,10 +233,7 @@ skpinv: addi r6,r6,1 /* Increment */
/* Invalidate TLB1 */ /* Invalidate TLB1 */
li r9,0x0c li r9,0x0c
tlbivax 0,r9 tlbivax 0,r9
#ifdef CONFIG_SMP TLBSYNC
tlbsync
#endif
msync
/* 6. Setup KERNELBASE mapping in TLB1[0] */ /* 6. Setup KERNELBASE mapping in TLB1[0] */
lis r6,0x1000 /* Set MAS0(TLBSEL) = TLB1(1), ESEL = 0 */ lis r6,0x1000 /* Set MAS0(TLBSEL) = TLB1(1), ESEL = 0 */
...@@ -283,10 +275,7 @@ skpinv: addi r6,r6,1 /* Increment */ ...@@ -283,10 +275,7 @@ skpinv: addi r6,r6,1 /* Increment */
/* Invalidate TLB1 */ /* Invalidate TLB1 */
li r9,0x0c li r9,0x0c
tlbivax 0,r9 tlbivax 0,r9
#ifdef CONFIG_SMP TLBSYNC
tlbsync
#endif
msync
/* Establish the interrupt vector offsets */ /* Establish the interrupt vector offsets */
SET_IVOR(0, CriticalInput); SET_IVOR(0, CriticalInput);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment