Add wrapper function for the Purge TLB instruction. Signed-off-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx> --- lib/s390x/asm/pgtable.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/s390x/asm/pgtable.h b/lib/s390x/asm/pgtable.h index 7b556ad9..fcb30a1e 100644 --- a/lib/s390x/asm/pgtable.h +++ b/lib/s390x/asm/pgtable.h @@ -247,4 +247,9 @@ static inline void idte_pgdp(unsigned long vaddr, pgdval_t *pgdp) idte((unsigned long)(pgdp - pgd_index(vaddr)) | ASCE_DT_REGION1, vaddr); } +static inline void ptlb(void) +{ + asm volatile("ptlb" : : : "memory"); +} + #endif /* _ASMS390X_PGTABLE_H_ */ -- 2.47.1