patch-1.3.22 linux/include/asm-mips/page.h

Next file: linux/include/asm-sparc/page.h
Previous file: linux/include/asm-i386/types.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.21/linux/include/asm-mips/page.h linux/include/asm-mips/page.h
@@ -10,6 +10,12 @@
 #define invalidate()	tlbflush();
 extern asmlinkage void tlbflush(void);
 
+/* Certain architectures need to do special things when pte's
+ * within a page table are directly modified.  Thus, the following
+ * hook is made available.
+ */
+#define set_pte(pteptr, pteval) ((*(pteptr)) = (pteval))
+
 typedef unsigned short mem_map_t;
 
 #ifdef CONFIG_STRICT_MM_TYPECHECKS

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