s390: rename struct psw_bits members
Rename a couple of the struct psw_bits members so it is more obvious for what they are good. Initially I thought using the single character names from the PoP would be sufficient and obvious, but admittedly that is not true. The current implementation is not easy to use, if one has to look into the source file to figure out which member represents the 'per' bit (which is the 'r' member). Therefore rename the members to sane names that are identical to the uapi psw mask defines: r -> per i -> io e -> ext t -> dat m -> mcheck w -> wait p -> pstate Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
8bb3fdd686
commit
a752598254
@@ -24,25 +24,25 @@
|
||||
PSW_MASK_PSTATE | PSW_ASC_PRIMARY)
|
||||
|
||||
struct psw_bits {
|
||||
unsigned long : 1;
|
||||
unsigned long r : 1; /* PER-Mask */
|
||||
unsigned long : 3;
|
||||
unsigned long t : 1; /* DAT Mode */
|
||||
unsigned long i : 1; /* Input/Output Mask */
|
||||
unsigned long e : 1; /* External Mask */
|
||||
unsigned long key : 4; /* PSW Key */
|
||||
unsigned long : 1;
|
||||
unsigned long m : 1; /* Machine-Check Mask */
|
||||
unsigned long w : 1; /* Wait State */
|
||||
unsigned long p : 1; /* Problem State */
|
||||
unsigned long as : 2; /* Address Space Control */
|
||||
unsigned long cc : 2; /* Condition Code */
|
||||
unsigned long pm : 4; /* Program Mask */
|
||||
unsigned long ri : 1; /* Runtime Instrumentation */
|
||||
unsigned long : 6;
|
||||
unsigned long eaba : 2; /* Addressing Mode */
|
||||
unsigned long : 31;
|
||||
unsigned long ia : 64; /* Instruction Address */
|
||||
unsigned long : 1;
|
||||
unsigned long per : 1; /* PER-Mask */
|
||||
unsigned long : 3;
|
||||
unsigned long dat : 1; /* DAT Mode */
|
||||
unsigned long io : 1; /* Input/Output Mask */
|
||||
unsigned long ext : 1; /* External Mask */
|
||||
unsigned long key : 4; /* PSW Key */
|
||||
unsigned long : 1;
|
||||
unsigned long mcheck : 1; /* Machine-Check Mask */
|
||||
unsigned long wait : 1; /* Wait State */
|
||||
unsigned long pstate : 1; /* Problem State */
|
||||
unsigned long as : 2; /* Address Space Control */
|
||||
unsigned long cc : 2; /* Condition Code */
|
||||
unsigned long pm : 4; /* Program Mask */
|
||||
unsigned long ri : 1; /* Runtime Instrumentation */
|
||||
unsigned long : 6;
|
||||
unsigned long eaba : 2; /* Addressing Mode */
|
||||
unsigned long : 31;
|
||||
unsigned long ia : 64; /* Instruction Address */
|
||||
};
|
||||
|
||||
enum {
|
||||
|
||||
Reference in New Issue
Block a user