software/libbase/system: fix flush_l2_cache
This commit is contained in:
parent
f44956bfca
commit
781869d6f9
|
@ -74,7 +74,7 @@ void flush_l2_cache(void)
|
||||||
register unsigned int addr;
|
register unsigned int addr;
|
||||||
register unsigned int dummy;
|
register unsigned int dummy;
|
||||||
|
|
||||||
for(i=0;i<2*L2_SIZE;i++) {
|
for(i=0;i<2*L2_SIZE/4;i++) {
|
||||||
addr = MAIN_RAM_BASE + i*4;
|
addr = MAIN_RAM_BASE + i*4;
|
||||||
#if defined (__lm32__)
|
#if defined (__lm32__)
|
||||||
__asm__ volatile("lw %0, (%1+0)\n":"=r"(dummy):"r"(addr));
|
__asm__ volatile("lw %0, (%1+0)\n":"=r"(dummy):"r"(addr));
|
||||||
|
|
Loading…
Reference in New Issue