aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r--arch/s390/include/asm/pgtable.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h
index 391e592356d0..f9a0a70dc936 100644
--- a/arch/s390/include/asm/pgtable.h
+++ b/arch/s390/include/asm/pgtable.h
@@ -640,6 +640,13 @@ static inline void pgste_set_unlock(pte_t *ptep, pgste_t pgste)
640#endif 640#endif
641} 641}
642 642
643static inline void pgste_set(pte_t *ptep, pgste_t pgste)
644{
645#ifdef CONFIG_PGSTE
646 *(pgste_t *)(ptep + PTRS_PER_PTE) = pgste;
647#endif
648}
649
643static inline pgste_t pgste_update_all(pte_t *ptep, pgste_t pgste) 650static inline pgste_t pgste_update_all(pte_t *ptep, pgste_t pgste)
644{ 651{
645#ifdef CONFIG_PGSTE 652#ifdef CONFIG_PGSTE
@@ -1101,8 +1108,10 @@ static inline pte_t ptep_modify_prot_start(struct mm_struct *mm,
1101 if (!mm_exclusive(mm)) 1108 if (!mm_exclusive(mm))
1102 __ptep_ipte(address, ptep); 1109 __ptep_ipte(address, ptep);
1103 1110
1104 if (mm_has_pgste(mm)) 1111 if (mm_has_pgste(mm)) {
1105 pgste = pgste_update_all(&pte, pgste); 1112 pgste = pgste_update_all(&pte, pgste);
1113 pgste_set(ptep, pgste);
1114 }
1106 return pte; 1115 return pte;
1107} 1116}
1108 1117