|
@@ -135,7 +135,7 @@ _GLOBAL_TOC(flush_dcache_range)
|
|
|
subf r8,r6,r4 /* compute length */
|
|
subf r8,r6,r4 /* compute length */
|
|
|
add r8,r8,r5 /* ensure we get enough */
|
|
add r8,r8,r5 /* ensure we get enough */
|
|
|
lwz r9,DCACHEL1LOGBLOCKSIZE(r10) /* Get log-2 of dcache block size */
|
|
lwz r9,DCACHEL1LOGBLOCKSIZE(r10) /* Get log-2 of dcache block size */
|
|
|
- srw. r8,r8,r9 /* compute line count */
|
|
|
|
|
|
|
+ srd. r8,r8,r9 /* compute line count */
|
|
|
beqlr /* nothing to do? */
|
|
beqlr /* nothing to do? */
|
|
|
mtctr r8
|
|
mtctr r8
|
|
|
0: dcbst 0,r6
|
|
0: dcbst 0,r6
|
|
@@ -153,7 +153,7 @@ _GLOBAL(flush_inval_dcache_range)
|
|
|
subf r8,r6,r4 /* compute length */
|
|
subf r8,r6,r4 /* compute length */
|
|
|
add r8,r8,r5 /* ensure we get enough */
|
|
add r8,r8,r5 /* ensure we get enough */
|
|
|
lwz r9,DCACHEL1LOGBLOCKSIZE(r10)/* Get log-2 of dcache block size */
|
|
lwz r9,DCACHEL1LOGBLOCKSIZE(r10)/* Get log-2 of dcache block size */
|
|
|
- srw. r8,r8,r9 /* compute line count */
|
|
|
|
|
|
|
+ srd. r8,r8,r9 /* compute line count */
|
|
|
beqlr /* nothing to do? */
|
|
beqlr /* nothing to do? */
|
|
|
sync
|
|
sync
|
|
|
isync
|
|
isync
|