patch-2.3.99-pre2 linux/include/asm-alpha/mmu_context.h

Next file: linux/include/asm-alpha/page.h
Previous file: linux/include/asm-alpha/mman.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre1/linux/include/asm-alpha/mmu_context.h linux/include/asm-alpha/mmu_context.h
@@ -22,11 +22,6 @@
 #include <asm/io.h>
 #endif
 
-static inline void
-enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk, unsigned cpu)
-{
-}
-
 extern inline unsigned long
 __reload_thread(struct thread_struct *pcb)
 {
@@ -221,6 +216,12 @@
 destroy_context(struct mm_struct *mm)
 {
 	/* Nothing to do.  */
+}
+
+static inline void
+enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk, unsigned cpu)
+{
+	tsk->thread.ptbr = ((unsigned long)mm->pgd - IDENT_ADDR) >> PAGE_SHIFT;
 }
 
 #ifdef __MMU_EXTERN_INLINE

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