diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2016-03-21 13:15:09 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2016-03-21 13:15:09 +0000 |
commit | 9a9510a434bdf668e4e2a81a0492c3eeb000df62 (patch) | |
tree | 8b94973c5cd125e77a30f3e989e49fce87678902 /target/linux/generic/image | |
parent | bb2a7bdac54ba58957d2e95a4be59699eeb47984 (diff) | |
download | master-187ad058-9a9510a434bdf668e4e2a81a0492c3eeb000df62.tar.gz master-187ad058-9a9510a434bdf668e4e2a81a0492c3eeb000df62.tar.bz2 master-187ad058-9a9510a434bdf668e4e2a81a0492c3eeb000df62.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49056 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/image')
-rw-r--r-- | target/linux/generic/image/lzma-loader/src/start.S | 8 |
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) |