patch-2.4.0-test2 linux/include/asm-ppc/mmu_context.h

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

diff -u --recursive --new-file v2.4.0-test1/linux/include/asm-ppc/mmu_context.h linux/include/asm-ppc/mmu_context.h
@@ -48,8 +48,12 @@
  * Set the current MMU context.
  * On 32-bit PowerPCs (other than the 8xx embedded chips), this is done by
  * loading up the segment registers for the user part of the address space.
+ *
+ * On the 8xx parts, the context currently includes the page directory,
+ * and once I implement a real TLB context manager this will disappear.
+ * The PGD is ignored on other processors. - Dan
  */
-extern void set_context(int context);
+extern void set_context(int context, void *pgd);
 
 #ifdef CONFIG_8xx
 extern inline void mmu_context_overflow(void)
@@ -85,7 +89,7 @@
 {
 	tsk->thread.pgdir = next->pgd;
 	get_mmu_context(next);
-	set_context(next->context);
+	set_context(next->context, next->pgd);
 }
 
 /*
@@ -96,7 +100,7 @@
 {
 	current->thread.pgdir = mm->pgd;
 	get_mmu_context(mm);
-	set_context(mm->context);
+	set_context(mm->context, mm->pgd);
 }
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)