patch-2.1.100 linux/include/asm-mips/mmu_context.h

Next file: linux/include/asm-ppc/ide.h
Previous file: linux/include/asm-mips/ide.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/include/asm-mips/mmu_context.h linux/include/asm-mips/mmu_context.h
@@ -62,4 +62,14 @@
 	mm->context = 0;
 }
 
+/*
+ * After we have set current->mm to a new value, this activates
+ * the context for the new mm so we see the new mappings.
+ */
+extern inline activate_context(struct task_struct *tsk)
+{
+	get_mmu_context(tsk);
+	/* XXX here we presumably need to set some cpu register - paulus. */
+}
+
 #endif /* __ASM_MIPS_MMU_CONTEXT_H */

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