patch-2.1.44 linux/include/asm-m68k/pgtable.h

Next file: linux/include/asm-mips/addrspace.h
Previous file: linux/include/asm-m68k/ioctls.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.43/linux/include/asm-m68k/pgtable.h linux/include/asm-m68k/pgtable.h
@@ -95,38 +95,23 @@
 
 extern inline void flush_cache_mm(struct mm_struct *mm)
 {
-#if FLUSH_VIRTUAL_CACHE_040
-	if (mm == current->mm) __flush_cache_all();
-#else
-	if (mm == current->mm) __flush_cache_030();
-#endif
+	if (mm == current->mm)
+		__flush_cache_030();
 }
 
 extern inline void flush_cache_range(struct mm_struct *mm,
 				     unsigned long start,
 				     unsigned long end)
 {
-	if (mm == current->mm){
-#if FLUSH_VIRTUAL_CACHE_040
-	    if (CPU_IS_040_OR_060)
-	        cache_push_v(start, end-start);
-	    else
-#endif
+	if (mm == current->mm)
 	        __flush_cache_030();
-	}
 }
 
 extern inline void flush_cache_page(struct vm_area_struct *vma,
 				    unsigned long vmaddr)
 {
-	if (vma->vm_mm == current->mm){
-#if FLUSH_VIRTUAL_CACHE_040
-	    if (CPU_IS_040_OR_060)
-	        cache_push_v(vmaddr, PAGE_SIZE);
-	    else
-#endif
+	if (vma->vm_mm == current->mm)
 	        __flush_cache_030();
-	}
 }
 
 /* Push the page at kernel virtual address and clear the icache */
@@ -782,5 +767,8 @@
 #endif
 
 #endif /* __ASSEMBLY__ */
+
+#define module_map      vmalloc
+#define module_unmap    vfree
 
 #endif /* _M68K_PGTABLE_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov