diff options
Diffstat (limited to 'include/asm-sparc64')
-rw-r--r-- | include/asm-sparc64/mmu.h | 1 | ||||
-rw-r--r-- | include/asm-sparc64/mmu_context.h | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-sparc64/mmu.h b/include/asm-sparc64/mmu.h index 2effeba2476c..76008ff6a90b 100644 --- a/include/asm-sparc64/mmu.h +++ b/include/asm-sparc64/mmu.h | |||
@@ -100,6 +100,7 @@ struct tsb { | |||
100 | typedef struct { | 100 | typedef struct { |
101 | unsigned long sparc64_ctx_val; | 101 | unsigned long sparc64_ctx_val; |
102 | struct tsb *tsb; | 102 | struct tsb *tsb; |
103 | unsigned long tsb_rss_limit; | ||
103 | unsigned long tsb_nentries; | 104 | unsigned long tsb_nentries; |
104 | unsigned long tsb_reg_val; | 105 | unsigned long tsb_reg_val; |
105 | unsigned long tsb_map_vaddr; | 106 | unsigned long tsb_map_vaddr; |
diff --git a/include/asm-sparc64/mmu_context.h b/include/asm-sparc64/mmu_context.h index 0a950f151d2b..1d232678821d 100644 --- a/include/asm-sparc64/mmu_context.h +++ b/include/asm-sparc64/mmu_context.h | |||
@@ -32,6 +32,13 @@ static inline void tsb_context_switch(struct mm_struct *mm) | |||
32 | mm->context.tsb_map_pte); | 32 | mm->context.tsb_map_pte); |
33 | } | 33 | } |
34 | 34 | ||
35 | extern void tsb_grow(struct mm_struct *mm, unsigned long mm_rss, gfp_t gfp_flags); | ||
36 | #ifdef CONFIG_SMP | ||
37 | extern void smp_tsb_sync(struct mm_struct *mm); | ||
38 | #else | ||
39 | #define smp_tsb_sync(__mm) do { } while (0) | ||
40 | #endif | ||
41 | |||
35 | /* Set MMU context in the actual hardware. */ | 42 | /* Set MMU context in the actual hardware. */ |
36 | #define load_secondary_context(__mm) \ | 43 | #define load_secondary_context(__mm) \ |
37 | __asm__ __volatile__("stxa %0, [%1] %2\n\t" \ | 44 | __asm__ __volatile__("stxa %0, [%1] %2\n\t" \ |