diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-sparc/mmu_context.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-sparc/mmu_context.h')
-rw-r--r-- | include/asm-sparc/mmu_context.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/asm-sparc/mmu_context.h b/include/asm-sparc/mmu_context.h new file mode 100644 index 000000000000..ed1e01d04d21 --- /dev/null +++ b/include/asm-sparc/mmu_context.h | |||
@@ -0,0 +1,40 @@ | |||
1 | #ifndef __SPARC_MMU_CONTEXT_H | ||
2 | #define __SPARC_MMU_CONTEXT_H | ||
3 | |||
4 | #include <asm/btfixup.h> | ||
5 | |||
6 | #ifndef __ASSEMBLY__ | ||
7 | |||
8 | static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) | ||
9 | { | ||
10 | } | ||
11 | |||
12 | /* | ||
13 | * Initialize a new mmu context. This is invoked when a new | ||
14 | * address space instance (unique or shared) is instantiated. | ||
15 | */ | ||
16 | #define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0) | ||
17 | |||
18 | /* | ||
19 | * Destroy a dead context. This occurs when mmput drops the | ||
20 | * mm_users count to zero, the mmaps have been released, and | ||
21 | * all the page tables have been flushed. Our job is to destroy | ||
22 | * any remaining processor-specific state. | ||
23 | */ | ||
24 | BTFIXUPDEF_CALL(void, destroy_context, struct mm_struct *) | ||
25 | |||
26 | #define destroy_context(mm) BTFIXUP_CALL(destroy_context)(mm) | ||
27 | |||
28 | /* Switch the current MM context. */ | ||
29 | BTFIXUPDEF_CALL(void, switch_mm, struct mm_struct *, struct mm_struct *, struct task_struct *) | ||
30 | |||
31 | #define switch_mm(old_mm, mm, tsk) BTFIXUP_CALL(switch_mm)(old_mm, mm, tsk) | ||
32 | |||
33 | #define deactivate_mm(tsk,mm) do { } while (0) | ||
34 | |||
35 | /* Activate a new MM instance for the current task. */ | ||
36 | #define activate_mm(active_mm, mm) switch_mm((active_mm), (mm), NULL) | ||
37 | |||
38 | #endif /* !(__ASSEMBLY__) */ | ||
39 | |||
40 | #endif /* !(__SPARC_MMU_CONTEXT_H) */ | ||