s390/vmem: introduce and use SEGMENT_KERNEL and REGION3_KERNEL
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 11 May 2016 08:52:07 +0000 (10:52 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 13 Jun 2016 13:58:13 +0000 (15:58 +0200)
commit2dffdcbac91c8da1eb0663d6eab92f2e5b56a798
tree00a307b551736f80e02561a2c0255d0c0689e31f
parent2e9996fcf8b8f933f9496cc885c9e05730f23c9e
s390/vmem: introduce and use SEGMENT_KERNEL and REGION3_KERNEL

Instead of open-coded SEGMENT_KERNEL and REGION3_KERNEL assignments use
defines.  Also to make e.g. pmd_wrprotect() work on the kernel mapping
a couple more flags must be set. Therefore add the missing flags also.

In order to make everything symmetrical this patch also adds software
dirty, young, read and write bits for region 3 table entries.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pgtable.h
arch/s390/mm/vmem.c