From 19c9bba94152148523ba0f7ef7cffe3d45656b11 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 29 Apr 1997 21:13:14 +0000 Subject: Import of Linux/MIPS 2.1.36 --- include/asm-mips/mmu_context.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include/asm-mips/mmu_context.h') diff --git a/include/asm-mips/mmu_context.h b/include/asm-mips/mmu_context.h index d905d8f11..87b12792e 100644 --- a/include/asm-mips/mmu_context.h +++ b/include/asm-mips/mmu_context.h @@ -44,4 +44,22 @@ extern inline void get_mmu_context(struct task_struct *p) } } +/* + * Initialize the context related info for a new mm_struct + * instance. + */ +extern inline void init_new_context(struct mm_struct *mm) +{ + mm->context = 0; +} + +/* + * Destroy context related info for an mm_struct that is about + * to be put to rest. + */ +extern inline void destroy_context(struct mm_struct *mm) +{ + mm->context = 0; +} + #endif /* __ASM_MIPS_MMU_CONTEXT_H */ -- cgit v1.2.3