mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
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> SVN-Revision: 49056
This commit is contained in:
parent
479a0ef957
commit
8cd8698b6f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user