diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-04-13 14:15:37 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-04-13 14:15:37 +0000 |
commit | 208dc249e6b7b48f8bbb036d318e6e80106b9ea1 (patch) | |
tree | 9aacb4084bf0d1f6e3728b1b9623c44093eb669d /firmware | |
parent | a0e1e329f7f3c1c428d53188856063334847e18c (diff) |
mmu-arm (v4/v5) : fix previous commit, clean/invalidate correctly the first segment in each loop
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25626 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/mmu-arm.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/mmu-arm.S b/firmware/target/arm/mmu-arm.S index 6b580b4524..9f90e1e0f9 100644 --- a/firmware/target/arm/mmu-arm.S +++ b/firmware/target/arm/mmu-arm.S @@ -277,7 +277,7 @@ cpucache_flush: @ Index format: 31:26 = index, 7:5 = segment, remainder = SBZ mov r1, #0x00000000 @ 1: @ clean_start @ - mcr p15, 0, r0, c7, c10, 2 @ Clean entry by index + mcr p15, 0, r1, c7, c10, 2 @ Clean entry by index add r0, r1, #0x00000020 @ mcr p15, 0, r0, c7, c10, 2 @ Clean entry by index add r0, r0, #0x00000020 @ @@ -311,7 +311,7 @@ invalidate_dcache: @ Index format: 31:26 = index, 7:5 = segment, remainder = SBZ mov r1, #0x00000000 @ 1: @ inv_start @ - mcr p15, 0, r0, c7, c14, 2 @ Clean and invalidate entry by index + mcr p15, 0, r1, c7, c14, 2 @ Clean and invalidate entry by index add r0, r1, #0x00000020 @ mcr p15, 0, r0, c7, c14, 2 @ Clean and invalidate entry by index add r0, r0, #0x00000020 @ |