Skip to content

Commit 013e984

Browse files
hcahcazx2c4
authored andcommitted
s390/alternatives: Remove ALT_FACILITY_EARLY
Patch all alternatives which depend on facilities from the decompressor. There is no technical reason which enforces to split patching of such alternatives to the decompressor and the kernel. This simplifies alternative handling a bit, since one alternative type is removed. Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent 26d4959 commit 013e984

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

arch/s390/include/asm/alternative.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@
3939
#define ALT_TYPE_SHIFT 20
4040
#define ALT_CTX_SHIFT 28
4141

42-
#define ALT_FACILITY_EARLY(facility) (ALT_CTX_EARLY << ALT_CTX_SHIFT | \
43-
ALT_TYPE_FACILITY << ALT_TYPE_SHIFT | \
44-
(facility) << ALT_DATA_SHIFT)
45-
46-
#define ALT_FACILITY(facility) (ALT_CTX_LATE << ALT_CTX_SHIFT | \
42+
#define ALT_FACILITY(facility) (ALT_CTX_EARLY << ALT_CTX_SHIFT | \
4743
ALT_TYPE_FACILITY << ALT_TYPE_SHIFT | \
4844
(facility) << ALT_DATA_SHIFT)
4945

arch/s390/kernel/entry.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ _LPP_OFFSET = __LC_LPP
4242

4343
.macro LPSWEY address, lpswe
4444
ALTERNATIVE_2 "b \lpswe;nopr", \
45-
".insn siy,0xeb0000000071,\address,0", ALT_FACILITY_EARLY(193), \
45+
".insn siy,0xeb0000000071,\address,0", ALT_FACILITY(193), \
4646
__stringify(.insn siy,0xeb0000000071,LOWCORE_ALT_ADDRESS+\address,0), \
4747
ALT_LOWCORE
4848
.endm

0 commit comments

Comments
 (0)