summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64/pgtable.h
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-07-24 23:51:40 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-07-24 23:51:40 +0000
commit036b956de28a83b793d7182bf104e7d0b44862eb (patch)
treedd2d24d724691342366344f523555f1cce62233b /include/asm-mips64/pgtable.h
parent5c61649a624af1ba36e12a2dd5a8a5f45b26f898 (diff)
Name change: the generic call flush_cache_all() does not do anything
anymore. All the flush_cache_all() calls in MIPS code is changed to call flush_cache_l1(), and ends up flushing the L1 i/d caches.
Diffstat (limited to 'include/asm-mips64/pgtable.h')
-rw-r--r--include/asm-mips64/pgtable.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/asm-mips64/pgtable.h b/include/asm-mips64/pgtable.h
index 867e78041..a5b5b977d 100644
--- a/include/asm-mips64/pgtable.h
+++ b/include/asm-mips64/pgtable.h
@@ -27,20 +27,19 @@
* - 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);
extern void (*_flush_cache_page)(struct vm_area_struct *vma, unsigned long page);
extern void (*_flush_page_to_ram)(struct page * page);
-#define flush_cache_all() _flush_cache_all()
+#define flush_cache_all() do { } while(0)
#define flush_cache_mm(mm) _flush_cache_mm(mm)
#define flush_cache_range(mm,start,end) _flush_cache_range(mm,start,end)
#define flush_cache_page(vma,page) _flush_cache_page(vma, page)
#define flush_page_to_ram(page) _flush_page_to_ram(page)
-#define flush_icache_range(start, end) flush_cache_all()
+#define flush_icache_range(start, end) _flush_cache_l1()
#define flush_icache_page(vma, page) \
do { \
@@ -55,9 +54,11 @@ do { \
*/
extern void (*_flush_cache_sigtramp)(unsigned long addr);
extern void (*_flush_cache_l2)(void);
+extern void (*_flush_cache_l1)(void);
#define flush_cache_sigtramp(addr) _flush_cache_sigtramp(addr)
#define flush_cache_l2() _flush_cache_l2()
+#define flush_cache_l1() _flush_cache_l1()
/*
* Each address space has 2 4K pages as its page directory, giving 1024