Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7bd0fea2 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle
Browse files

[MIPS] Fix the fix for divide by zero error in build_{clear,copy}_page

parent 89052bd7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -460,7 +460,7 @@ void __cpuinit build_copy_page(void)
		build_copy_load_pref(&buf, -off);
		build_copy_load_pref(&buf, -off);
		off -= cache_line_size;
		off -= cache_line_size;
	}
	}
	off = cache_line_size ? min(8, pref_bias_copy_load / cache_line_size) *
	off = cache_line_size ? min(8, pref_bias_copy_store / cache_line_size) *
	                        cache_line_size : 0;
	                        cache_line_size : 0;
	while (off) {
	while (off) {
		build_copy_store_pref(&buf, -off);
		build_copy_store_pref(&buf, -off);