Skip to content

Commit

Permalink
software/libbase/system: fix flush_l2_cache
Browse files Browse the repository at this point in the history
enjoy-digital committed Jun 19, 2015
1 parent f44956b commit 781869d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/libbase/system.c
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ void flush_l2_cache(void)
register unsigned int addr;
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;
#if defined (__lm32__)
__asm__ volatile("lw %0, (%1+0)\n":"=r"(dummy):"r"(addr));

0 comments on commit 781869d

Please sign in to comment.