powerpc/fsl-booke: Rework TLB CAM code
Re-write the code so its more standalone and fixed some issues: * Bump'd # of CAM entries to 64 to support e500mc * Make the code handle MAS7 properly * Use pr_cont instead of creating a string as we go Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
@@ -943,28 +943,6 @@ _GLOBAL(__setup_e500mc_ivors)
|
||||
sync
|
||||
blr
|
||||
|
||||
/*
|
||||
* extern void loadcam_entry(unsigned int index)
|
||||
*
|
||||
* Load TLBCAM[index] entry in to the L2 CAM MMU
|
||||
*/
|
||||
_GLOBAL(loadcam_entry)
|
||||
lis r4,TLBCAM@ha
|
||||
addi r4,r4,TLBCAM@l
|
||||
mulli r5,r3,TLBCAM_SIZE
|
||||
add r3,r5,r4
|
||||
lwz r4,0(r3)
|
||||
mtspr SPRN_MAS0,r4
|
||||
lwz r4,4(r3)
|
||||
mtspr SPRN_MAS1,r4
|
||||
lwz r4,8(r3)
|
||||
mtspr SPRN_MAS2,r4
|
||||
lwz r4,12(r3)
|
||||
mtspr SPRN_MAS3,r4
|
||||
tlbwe
|
||||
isync
|
||||
blr
|
||||
|
||||
/*
|
||||
* extern void giveup_altivec(struct task_struct *prev)
|
||||
*
|
||||
|
Reference in New Issue
Block a user