aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/image/lzma-loader
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2016-03-21 13:15:09 +0000
committerGabor Juhos <juhosg@openwrt.org>2016-03-21 13:15:09 +0000
commit8cd8698b6f06bf52fcbb1b7d41b2de27a0b0f938 (patch)
tree33448eb006cc915c235d7e241c83d658027d0580 /target/linux/generic/image/lzma-loader
parent479a0ef957fe88a3dd999c4f8457f49b2b9bc6f2 (diff)
downloadupstream-8cd8698b6f06bf52fcbb1b7d41b2de27a0b0f938.tar.gz
upstream-8cd8698b6f06bf52fcbb1b7d41b2de27a0b0f938.tar.bz2
upstream-8cd8698b6f06bf52fcbb1b7d41b2de27a0b0f938.zip
generic: 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. Tested on RB532. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 49056
Diffstat (limited to 'target/linux/generic/image/lzma-loader')
-rw-r--r--target/linux/generic/image/lzma-loader/src/start.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/generic/image/lzma-loader/src/start.S b/target/linux/generic/image/lzma-loader/src/start.S
index 827458017e..f025dabedd 100644
--- a/target/linux/generic/image/lzma-loader/src/start.S
+++ b/target/linux/generic/image/lzma-loader/src/start.S
@@ -145,15 +145,15 @@ nodc:
addu t0,s3
noic:
/* jump to main */
- 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 */
#ifdef IMAGE_COPY
jal t2
#else
jal entry
#endif
- move a3,s2 /* dcache size */
+ move a3,s1 /* dcache line size */
.set reorder
END(_start)