Author: juhosg Date: 2016-03-21 14:15:16 +0100 (Mon, 21 Mar 2016) New Revision: 49058
Modified: trunk/target/linux/adm5120/image/lzma-loader/src/head.S Log: adm5120: 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/adm5120/image/lzma-loader/src/head.S =================================================================== --- trunk/target/linux/adm5120/image/lzma-loader/src/head.S 2016-03-21 13:15:13 UTC (rev 49057) +++ trunk/target/linux/adm5120/image/lzma-loader/src/head.S 2016-03-21 13:15:16 UTC (rev 49058) @@ -195,10 +195,10 @@ sw a2, 8(sp) sw a3, 12(sp) #endif - sw s3, 16(sp) /* icache line size */ - sw s4, 20(sp) /* icache size */ - sw s1, 24(sp) /* dcache line size */ - sw s2, 28(sp) /* dcache size */ + sw s4, 16(sp) /* icache size */ + sw s3, 20(sp) /* icache line size */ + sw s2, 24(sp) /* dcache size */ + sw s1, 28(sp) /* dcache line size */ /* jump to the decompressor routine */ la t0, decompress_entry _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
