Skip to content

Commit 781869d

Browse files
committedJun 19, 2015
software/libbase/system: fix flush_l2_cache
1 parent f44956b commit 781869d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎software/libbase/system.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void flush_l2_cache(void)
7474
register unsigned int addr;
7575
register unsigned int dummy;
7676

77-
for(i=0;i<2*L2_SIZE;i++) {
77+
for(i=0;i<2*L2_SIZE/4;i++) {
7878
addr = MAIN_RAM_BASE + i*4;
7979
#if defined (__lm32__)
8080
__asm__ volatile("lw %0, (%1+0)\n":"=r"(dummy):"r"(addr));

0 commit comments

Comments
 (0)
Please sign in to comment.