diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2016-03-21 13:15:22 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2016-03-21 13:15:22 +0000 |
commit | 395fff6f8b9008339611ad4ab5fc0b067246253b (patch) | |
tree | 7c42a0ceb410cf909295e425eb5d003a6d85f06e /target/linux/brcm47xx/image | |
parent | f8933cbd5f0ba5ae16facd72049596d104fc152e (diff) | |
download | mtk-20170518-395fff6f8b9008339611ad4ab5fc0b067246253b.zip mtk-20170518-395fff6f8b9008339611ad4ab5fc0b067246253b.tar.gz mtk-20170518-395fff6f8b9008339611ad4ab5fc0b067246253b.tar.bz2 |
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>
SVN-Revision: 49060
Diffstat (limited to 'target/linux/brcm47xx/image')
-rw-r--r-- | target/linux/brcm47xx/image/lzma-loader/src/head.S | 8 |
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 9c2a9c9..930c9ba 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) |