Furthr fix in this patch, L2CR needs to be prefixed by SPRN_.

svn path=/trunk/kernel/source/linux-2.6-2.6.12/; revision=3561
This commit is contained in:
Sven Luther 2005-07-16 13:28:45 +00:00
parent 77ac832265
commit 2a60b2219c
1 changed files with 3 additions and 3 deletions

View File

@ -147,12 +147,12 @@
+ /* Use HW flush assist, MPC7447A errata #3 */
+ oris r4,r4,0x0010 /* Set L2CR[IONLY/11] = 1 */
+ oris r4,r4,0x0001 /* Set L2CR[DONLY/15] = 1 */
+ mtspr L2CR,r4 /* Lock the L2 */
+ mtspr SPRN_L2CR,r4 /* Lock the L2 */
+ sync
+ ori r4,r4,0x0800 /* Set L2CR[L2HWF/20] = 1 */
+ mtspr L2CR,r4 /* Flush the L2 */
+ mtspr SPRN_L2CR,r4 /* Flush the L2 */
+1:
+ mfspr r4,L2CR
+ mfspr r4,SPRN_L2CR
+ andi. r4,r4,0x0800 /* L2HWF still set? */
+ bne 1b
+ sync /* sync to clear the store queues before L3 flush (UM step 5)*/