ppc32: fix icache flush
original commit: d9bf4ebbc5fe32a1d3d35ba096a54e7b78d1f33c
This commit is contained in:
parent
e0a60ac950
commit
9bdc112b4d
|
@ -40,7 +40,7 @@ void S_doflush(uptr start, uptr end) {
|
|||
#endif
|
||||
|
||||
start &= ~(l1_max_cache_line_size - 1);
|
||||
end = (end + l1_max_cache_line_size) & ~(l1_max_cache_line_size - 1);
|
||||
end = (end + l1_max_cache_line_size - 1) & ~(l1_max_cache_line_size - 1);
|
||||
|
||||
for(i = start; i < end; i += l1_dcache_line_size) {
|
||||
__asm__ __volatile__ ("dcbst 0, %0" :: "r" (i));
|
||||
|
|
Loading…
Reference in New Issue
Block a user