Author: juhosg Date: 2016-03-21 14:15:22 +0100 (Mon, 21 Mar 2016) New Revision: 49060
Modified: trunk/target/linux/brcm47xx/image/lzma-loader/src/head.S Log: 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 <[email protected]> Modified: trunk/target/linux/brcm47xx/image/lzma-loader/src/head.S =================================================================== --- trunk/target/linux/brcm47xx/image/lzma-loader/src/head.S 2016-03-21 13:15:21 UTC (rev 49059) +++ trunk/target/linux/brcm47xx/image/lzma-loader/src/head.S 2016-03-21 13:15:22 UTC (rev 49060) @@ -150,11 +150,11 @@ 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) _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
