s390/ctlreg: add missing defines
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 11 Sep 2023 19:40:10 +0000 (21:40 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 19 Sep 2023 11:26:57 +0000 (13:26 +0200)
Add a couple of missing control register defines which otherwise would
prevent to convert other open-coded usages.

Acked-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/ctlreg.h

index 6582b1b9b97b7127e021d09ef15ed6214f7d23e3..76ed70cca43c3a56fd95530361a227bca3ceb184 100644 (file)
 
 #include <linux/bits.h>
 
+#define CR0_TRANSACTIONAL_EXECUTION    BIT(63 - 8)
 #define CR0_CLOCK_COMPARATOR_SIGN      BIT(63 - 10)
+#define CR0_CRYPTOGRAPHY_COUNTER       BIT(63 - 13)
+#define CR0_PAI_EXTENSION              BIT(63 - 14)
+#define CR0_CPUMF_EXTRACTION_AUTH      BIT(63 - 15)
+#define CR0_WARNING_TRACK              BIT(63 - 30)
 #define CR0_LOW_ADDRESS_PROTECTION     BIT(63 - 35)
 #define CR0_FETCH_PROTECTION_OVERRIDE  BIT(63 - 38)
 #define CR0_STORAGE_PROTECTION_OVERRIDE        BIT(63 - 39)
+#define CR0_EDAT                       BIT(63 - 40)
+#define CR0_INSTRUCTION_EXEC_PROTECTION        BIT(63 - 43)
+#define CR0_VECTOR                     BIT(63 - 46)
+#define CR0_MALFUNCTION_ALERT_SUBMASK  BIT(63 - 48)
 #define CR0_EMERGENCY_SIGNAL_SUBMASK   BIT(63 - 49)
 #define CR0_EXTERNAL_CALL_SUBMASK      BIT(63 - 50)
 #define CR0_CLOCK_COMPARATOR_SUBMASK   BIT(63 - 52)
 #define CR0_UNUSED_56                  BIT(63 - 56)
 #define CR0_INTERRUPT_KEY_SUBMASK      BIT(63 - 57)
 #define CR0_MEASUREMENT_ALERT_SUBMASK  BIT(63 - 58)
+#define CR0_ETR_SUBMASK                        BIT(63 - 59)
+#define CR0_IUCV                       BIT(63 - 62)
+
+#define CR2_MIO_ADDRESSING             BIT(63 - 58)
+#define CR2_GUARDED_STORAGE            BIT(63 - 59)
 
 #define CR14_UNUSED_32                 BIT(63 - 32)
 #define CR14_UNUSED_33                 BIT(63 - 33)