diff options
Diffstat (limited to 'include/asm-s390/tlbflush.h')
| -rw-r--r-- | include/asm-s390/tlbflush.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-s390/tlbflush.h b/include/asm-s390/tlbflush.h index fa4dc916a9bf..66793f55c8b2 100644 --- a/include/asm-s390/tlbflush.h +++ b/include/asm-s390/tlbflush.h | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #include <linux/mm.h> | 4 | #include <linux/mm.h> |
| 5 | #include <asm/processor.h> | 5 | #include <asm/processor.h> |
| 6 | #include <asm/pgalloc.h> | ||
| 6 | 7 | ||
| 7 | /* | 8 | /* |
| 8 | * TLB flushing: | 9 | * TLB flushing: |
| @@ -102,6 +103,14 @@ static inline void __flush_tlb_mm(struct mm_struct * mm) | |||
| 102 | if (unlikely(cpus_empty(mm->cpu_vm_mask))) | 103 | if (unlikely(cpus_empty(mm->cpu_vm_mask))) |
| 103 | return; | 104 | return; |
| 104 | if (MACHINE_HAS_IDTE) { | 105 | if (MACHINE_HAS_IDTE) { |
| 106 | pgd_t *shadow_pgd = get_shadow_pgd(mm->pgd); | ||
| 107 | |||
| 108 | if (shadow_pgd) { | ||
| 109 | asm volatile( | ||
| 110 | " .insn rrf,0xb98e0000,0,%0,%1,0" | ||
| 111 | : : "a" (2048), | ||
| 112 | "a" (__pa(shadow_pgd) & PAGE_MASK) : "cc" ); | ||
| 113 | } | ||
| 105 | asm volatile( | 114 | asm volatile( |
| 106 | " .insn rrf,0xb98e0000,0,%0,%1,0" | 115 | " .insn rrf,0xb98e0000,0,%0,%1,0" |
| 107 | : : "a" (2048), "a" (__pa(mm->pgd)&PAGE_MASK) : "cc"); | 116 | : : "a" (2048), "a" (__pa(mm->pgd)&PAGE_MASK) : "cc"); |
