From: juhosg Date: Mon, 21 Mar 2016 13:15:22 +0000 (+0000) Subject: brcm47xx: lzma-loader: fix cache invalidation X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=commitdiff_plain;h=1f5fdc3a5710e1897da4fde145e44e0123e450a5 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49060 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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)