patch-1.3.48 linux/include/asm-i386/pgtable.h

Next file: linux/include/asm-i386/processor.h
Previous file: linux/include/asm-i386/bugs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.47/linux/include/asm-i386/pgtable.h linux/include/asm-i386/pgtable.h
@@ -1,6 +1,8 @@
 #ifndef _I386_PGTABLE_H
 #define _I386_PGTABLE_H
 
+#include <linux/config.h>
+
 /*
  * Define USE_PENTIUM_MM if you want the 4MB page table optimizations.
  * This works only on a intel Pentium.
@@ -33,7 +35,7 @@
 #define __invalidate() \
 __asm__ __volatile__("movl %%cr3,%%eax\n\tmovl %%eax,%%cr3": : :"ax")
 
-#ifdef __i486__
+#ifdef CONFIG_M486
 #define __invalidate_one(addr) \
 __asm__ __volatile__("invlpg %0": :"m" (*(char *) addr))
 #else
@@ -51,10 +53,10 @@
 		__invalidate();
 }
 
-static inline void invalidate_page(struct mm_struct *mm,
+static inline void invalidate_page(struct vm_area_struct *vma,
 	unsigned long addr)
 {
-	if (mm == current->mm)
+	if (vma->vm_mm == current->mm)
 		__invalidate_one(addr);
 }
 
@@ -87,7 +89,7 @@
 	invalidate();
 }
 
-static inline void invalidate_page(struct mm_struct *mm,
+static inline void invalidate_page(struct vm_area_struct *vma,
 	unsigned long addr)
 {
 	invalidate();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this