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

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

diff -u --recursive --new-file v2.1.114/linux/include/asm-mips/mmu_context.h linux/include/asm-mips/mmu_context.h
@@ -1,11 +1,12 @@
-/*
+/* $Id: mmu_context.h,v 1.4 1998/05/07 00:40:04 ralf Exp $
+ *
  * Switch a MMU context.
  *
  * This file is subject to the terms and conditions of the GNU General Public
  * License.  See the file "COPYING" in the main directory of this archive
  * for more details.
  *
- * Copyright (C) 1996 by Ralf Baechle
+ * Copyright (C) 1996, 1997, 1998 by Ralf Baechle
  */
 #ifndef __ASM_MIPS_MMU_CONTEXT_H
 #define __ASM_MIPS_MMU_CONTEXT_H
@@ -66,10 +67,10 @@
  * 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)
+extern inline void activate_context(struct task_struct *tsk)
 {
 	get_mmu_context(tsk);
-	/* XXX here we presumably need to set some cpu register - paulus. */
+	set_entryhi(tsk->mm->context);
 }
 
 #endif /* __ASM_MIPS_MMU_CONTEXT_H */

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