Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377063
b: refs/heads/master
c: 3a82603
h: refs/heads/master
i:
  377061: 54ef3b1
  377059: d24e037
  377055: bee2641
v: v3
  • Loading branch information
Christian Borntraeger authored and Martin Schwidefsky committed Jun 5, 2013
1 parent 401d5ea commit cb13453
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9cc5c206d9b44b7763aab3082a5be72c78a3ef7a
refs/heads/master: 3a82603be4f5523ce21dd468a323aa36ff845f6d
11 changes: 10 additions & 1 deletion trunk/arch/s390/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,13 @@ static inline void pgste_set_unlock(pte_t *ptep, pgste_t pgste)
#endif
}

static inline void pgste_set(pte_t *ptep, pgste_t pgste)
{
#ifdef CONFIG_PGSTE
*(pgste_t *)(ptep + PTRS_PER_PTE) = pgste;
#endif
}

static inline pgste_t pgste_update_all(pte_t *ptep, pgste_t pgste)
{
#ifdef CONFIG_PGSTE
Expand Down Expand Up @@ -1101,8 +1108,10 @@ static inline pte_t ptep_modify_prot_start(struct mm_struct *mm,
if (!mm_exclusive(mm))
__ptep_ipte(address, ptep);

if (mm_has_pgste(mm))
if (mm_has_pgste(mm)) {
pgste = pgste_update_all(&pte, pgste);
pgste_set(ptep, pgste);
}
return pte;
}

Expand Down

0 comments on commit cb13453

Please sign in to comment.