Jelajahi Sumber

fix:fixed variable misuse

zb1tree 2 tahun lalu
induk
melakukan
a25d3fd301
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      libcpu/mips/gs232/cache.c

+ 2 - 2
libcpu/mips/gs232/cache.c

@@ -124,8 +124,8 @@ void invalidate_writeback_dcache(unsigned long addr, int size)
 {
     unsigned long start, end;
 
-    start = (addr +pcacheinfo->dcacheline_size -1) & (- pcacheinfo->dcacheline_size);
-    end = (end + size + pcacheinfo->dcacheline_size -1) & ( -pcacheinfo->dcacheline_size);
+    start = (addr + pcacheinfo->dcacheline_size -1) & (- pcacheinfo->dcacheline_size);
+    end = (addr + size + pcacheinfo->dcacheline_size -1) & ( -pcacheinfo->dcacheline_size);
 
     while (start <end)
     {