ARMv7-A: Fix some error in alignment to cache line boundaries in the cache operations

This commit is contained in:
Gregory Nutt 2013-09-21 15:47:00 -06:00
parent da37aa6413
commit d1ac44242f
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ cp15_clean_dcache:
mov r2, r2, lsl r3 /* Get the cache line size in bytes */
sub r3, r2, #1 /* R3=Cache line size mask */
bic r12, r0, r3 /* R12=aligned start address */
bic r0, r0, r3 /* R0=aligned start address */
/* Loop, cleaning each cache line by writing its contents to memory */

View File

@ -99,7 +99,7 @@ cp15_flush_dcache:
mov r2, r2, lsl r3 /* Get the cache line size in bytes */
sub r3, r2, #1 /* R3=Cache line size mask */
bic r12, r0, r3 /* R12=aligned start address */
bic r0, r0, r3 /* R0=aligned start address */
/* Loop, cleaning and invaliding each D cache line in the address range */