aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2016-03-21 13:15:22 +0000
committerGabor Juhos <juhosg@openwrt.org>2016-03-21 13:15:22 +0000
commitde015619aea8aa63fda861343da9b88792c05c67 (patch)
treec3d32855e02c9277c10bedcfe880318c8d769c88 /target/linux/brcm47xx
parent0a464409343018aba6edd2c784d36aeb8b9274f6 (diff)
downloadmaster-187ad058-de015619aea8aa63fda861343da9b88792c05c67.tar.gz
master-187ad058-de015619aea8aa63fda861343da9b88792c05c67.tar.bz2
master-187ad058-de015619aea8aa63fda861343da9b88792c05c67.zip
brcm47xx: lzma-loader: fix cache invalidation
The current code only partially invalidates both caches because the cache size and cache-line size values are incorrectly passed to the C code. Fix the assembly code to pass the arguments in the correct order. Compile tested only. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49060 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx')
-rw-r--r--target/linux/brcm47xx/image/lzma-loader/src/head.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/brcm47xx/image/lzma-loader/src/head.S b/target/linux/brcm47xx/image/lzma-loader/src/head.S
index 9c2a9c914a..930c9ba277 100644
--- a/target/linux/brcm47xx/image/lzma-loader/src/head.S
+++ b/target/linux/brcm47xx/image/lzma-loader/src/head.S
@@ -150,11 +150,11 @@ nodc:
addu t0,s3
noic:
- move a0,s3 /* icache line size */
- move a1,s4 /* icache size */
- move a2,s1 /* dcache line size */
+ move a0,s4 /* icache size */
+ move a1,s3 /* icache line size */
+ move a2,s2 /* dcache size */
jal t2
- move a3,s2 /* dcache size */
+ move a3,s1 /* dcache line size */
.set reorder
END(startup)