[PATCH] Re: [PATCH] r4k icache flushing for mips64 CVS HEAD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2 Jul 2002, Ralf Baechle wrote:

> > 	This fixes icache flushing for the r4xx0 processor in the current
> > (CVS HEAD) 2.5.1 tree. The flush_cache_all function does nothing there,
> > that's why I moved it to flush_cache_l1.
> 
> Not right, I checked in a variation of it ...

Ok, but you forgot some things. The following patch adds the declaration
of _flush_cache_all in loadmmu.c and pgtables.h

I guess 3 patches is enough for today ;) More coming later ;)

regards,
Vivien.
diff -Naur linux/include/asm-mips64/pgtable.h linux.patch/include/asm-mips64/pgtable.h
--- linux/include/asm-mips64/pgtable.h	Thu Jul  4 10:12:56 2002
+++ linux.patch/include/asm-mips64/pgtable.h	Thu Jul  4 11:17:23 2002
@@ -27,6 +27,7 @@
  *  - flush_cache_range(mm, start, end) flushes a range of pages
  *  - flush_page_to_ram(page) write back kernel page to ram
  */
+extern void (*_flush_cache_all)(void);
 extern void (*_flush_cache_mm)(struct mm_struct *mm);
 extern void (*_flush_cache_range)(struct mm_struct *mm, unsigned long start,
                                  unsigned long end);
diff -Naur linux/arch/mips64/mm/loadmmu.c linux.patch/arch/mips64/mm/loadmmu.c
--- linux/arch/mips64/mm/loadmmu.c	Thu Jul  4 10:12:28 2002
+++ linux.patch/arch/mips64/mm/loadmmu.c	Thu Jul  4 11:32:45 2002
@@ -24,6 +24,7 @@
 void (*_copy_page)(void * to, void * from);
 
 /* Cache operations. */
+void (*_flush_cache_all)(void);
 void (*_flush_cache_mm)(struct mm_struct *mm);
 void (*_flush_cache_range)(struct mm_struct *mm, unsigned long start,
                            unsigned long end);

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux