diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /arch/sparc/include/asm/mmu_context_32.h | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'arch/sparc/include/asm/mmu_context_32.h')
-rw-r--r-- | arch/sparc/include/asm/mmu_context_32.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/arch/sparc/include/asm/mmu_context_32.h b/arch/sparc/include/asm/mmu_context_32.h index 2df2a9be8f6..671a997b9e6 100644 --- a/arch/sparc/include/asm/mmu_context_32.h +++ b/arch/sparc/include/asm/mmu_context_32.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef __SPARC_MMU_CONTEXT_H | 1 | #ifndef __SPARC_MMU_CONTEXT_H |
2 | #define __SPARC_MMU_CONTEXT_H | 2 | #define __SPARC_MMU_CONTEXT_H |
3 | 3 | ||
4 | #include <asm/btfixup.h> | ||
5 | |||
4 | #ifndef __ASSEMBLY__ | 6 | #ifndef __ASSEMBLY__ |
5 | 7 | ||
6 | #include <asm-generic/mm_hooks.h> | 8 | #include <asm-generic/mm_hooks.h> |
@@ -9,21 +11,26 @@ static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) | |||
9 | { | 11 | { |
10 | } | 12 | } |
11 | 13 | ||
12 | /* Initialize a new mmu context. This is invoked when a new | 14 | /* |
15 | * Initialize a new mmu context. This is invoked when a new | ||
13 | * address space instance (unique or shared) is instantiated. | 16 | * address space instance (unique or shared) is instantiated. |
14 | */ | 17 | */ |
15 | int init_new_context(struct task_struct *tsk, struct mm_struct *mm); | 18 | #define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0) |
16 | 19 | ||
17 | /* Destroy a dead context. This occurs when mmput drops the | 20 | /* |
21 | * Destroy a dead context. This occurs when mmput drops the | ||
18 | * mm_users count to zero, the mmaps have been released, and | 22 | * mm_users count to zero, the mmaps have been released, and |
19 | * all the page tables have been flushed. Our job is to destroy | 23 | * all the page tables have been flushed. Our job is to destroy |
20 | * any remaining processor-specific state. | 24 | * any remaining processor-specific state. |
21 | */ | 25 | */ |
22 | void destroy_context(struct mm_struct *mm); | 26 | BTFIXUPDEF_CALL(void, destroy_context, struct mm_struct *) |
27 | |||
28 | #define destroy_context(mm) BTFIXUP_CALL(destroy_context)(mm) | ||
23 | 29 | ||
24 | /* Switch the current MM context. */ | 30 | /* Switch the current MM context. */ |
25 | void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, | 31 | BTFIXUPDEF_CALL(void, switch_mm, struct mm_struct *, struct mm_struct *, struct task_struct *) |
26 | struct task_struct *tsk); | 32 | |
33 | #define switch_mm(old_mm, mm, tsk) BTFIXUP_CALL(switch_mm)(old_mm, mm, tsk) | ||
27 | 34 | ||
28 | #define deactivate_mm(tsk,mm) do { } while (0) | 35 | #define deactivate_mm(tsk,mm) do { } while (0) |
29 | 36 | ||