Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23861451 authored by David Hildenbrand's avatar David Hildenbrand Committed by Christian Borntraeger
Browse files

s390/sclp: detect storage-key facility



Let's correctly detect that facility.

Reviewed-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: default avatarDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
parent 695be0e7
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -32,7 +32,8 @@ struct sclp_core_entry {
	u8 reserved0;
	u8 reserved0;
	u8 : 4;
	u8 : 4;
	u8 sief2 : 1;
	u8 sief2 : 1;
	u8 : 3;
	u8 skey : 1;
	u8 : 2;
	u8 : 2;
	u8 : 2;
	u8 gpere : 1;
	u8 gpere : 1;
	u8 siif : 1;
	u8 siif : 1;
@@ -73,6 +74,7 @@ struct sclp_info {
	unsigned char has_cei : 1;
	unsigned char has_cei : 1;
	unsigned char has_pfmfi : 1;
	unsigned char has_pfmfi : 1;
	unsigned char has_ibs : 1;
	unsigned char has_ibs : 1;
	unsigned char has_skey : 1;
	unsigned int ibc;
	unsigned int ibc;
	unsigned int mtid;
	unsigned int mtid;
	unsigned int mtid_cp;
	unsigned int mtid_cp;
+1 −0
Original line number Original line Diff line number Diff line
@@ -154,6 +154,7 @@ static void __init sclp_facilities_detect(struct read_info_sccb *sccb)
		sclp.has_gpere = cpue->gpere;
		sclp.has_gpere = cpue->gpere;
		sclp.has_ib = cpue->ib;
		sclp.has_ib = cpue->ib;
		sclp.has_cei = cpue->cei;
		sclp.has_cei = cpue->cei;
		sclp.has_skey = cpue->skey;
		break;
		break;
	}
	}