diff options
author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2013-02-11 12:11:09 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-02-14 09:55:24 -0500 |
commit | 23d18e8d9311db748b5b496bc4ba38500e3d408b (patch) | |
tree | dcbaa04a16843bf69636300b39b81c3f386ad337 | |
parent | abf09bed3cceadd809f0356065c2ada6cee90d4a (diff) |
s390/cleanup: rename SPP to LPP
The set-program-parameter (SPP) instruction has been renamed to
load-program-parameter (LPP) (see SA23-2260). Reflect this change
and rename all macro/instruction references.
Also remove the duplicate SPP/LPP entry in the kernel disassembler
instruction list.
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | arch/s390/include/asm/cpu_mf.h | 4 | ||||
-rw-r--r-- | arch/s390/include/asm/setup.h | 6 | ||||
-rw-r--r-- | arch/s390/kernel/dis.c | 1 | ||||
-rw-r--r-- | arch/s390/kernel/early.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/entry64.S | 10 |
5 files changed, 11 insertions, 12 deletions
diff --git a/arch/s390/include/asm/cpu_mf.h b/arch/s390/include/asm/cpu_mf.h index 35f0020b7ba7..f1eddd150dd7 100644 --- a/arch/s390/include/asm/cpu_mf.h +++ b/arch/s390/include/asm/cpu_mf.h | |||
@@ -34,12 +34,12 @@ | |||
34 | /* CPU measurement facility support */ | 34 | /* CPU measurement facility support */ |
35 | static inline int cpum_cf_avail(void) | 35 | static inline int cpum_cf_avail(void) |
36 | { | 36 | { |
37 | return MACHINE_HAS_SPP && test_facility(67); | 37 | return MACHINE_HAS_LPP && test_facility(67); |
38 | } | 38 | } |
39 | 39 | ||
40 | static inline int cpum_sf_avail(void) | 40 | static inline int cpum_sf_avail(void) |
41 | { | 41 | { |
42 | return MACHINE_HAS_SPP && test_facility(68); | 42 | return MACHINE_HAS_LPP && test_facility(68); |
43 | } | 43 | } |
44 | 44 | ||
45 | 45 | ||
diff --git a/arch/s390/include/asm/setup.h b/arch/s390/include/asm/setup.h index f6857516e523..ff67d730c00c 100644 --- a/arch/s390/include/asm/setup.h +++ b/arch/s390/include/asm/setup.h | |||
@@ -75,7 +75,7 @@ extern unsigned int s390_user_mode; | |||
75 | #define MACHINE_FLAG_EDAT1 (1UL << 10) | 75 | #define MACHINE_FLAG_EDAT1 (1UL << 10) |
76 | #define MACHINE_FLAG_EDAT2 (1UL << 11) | 76 | #define MACHINE_FLAG_EDAT2 (1UL << 11) |
77 | #define MACHINE_FLAG_LPAR (1UL << 12) | 77 | #define MACHINE_FLAG_LPAR (1UL << 12) |
78 | #define MACHINE_FLAG_SPP (1UL << 13) | 78 | #define MACHINE_FLAG_LPP (1UL << 13) |
79 | #define MACHINE_FLAG_TOPOLOGY (1UL << 14) | 79 | #define MACHINE_FLAG_TOPOLOGY (1UL << 14) |
80 | #define MACHINE_FLAG_TE (1UL << 15) | 80 | #define MACHINE_FLAG_TE (1UL << 15) |
81 | #define MACHINE_FLAG_RRBM (1UL << 16) | 81 | #define MACHINE_FLAG_RRBM (1UL << 16) |
@@ -98,7 +98,7 @@ extern unsigned int s390_user_mode; | |||
98 | #define MACHINE_HAS_MVCOS (0) | 98 | #define MACHINE_HAS_MVCOS (0) |
99 | #define MACHINE_HAS_EDAT1 (0) | 99 | #define MACHINE_HAS_EDAT1 (0) |
100 | #define MACHINE_HAS_EDAT2 (0) | 100 | #define MACHINE_HAS_EDAT2 (0) |
101 | #define MACHINE_HAS_SPP (0) | 101 | #define MACHINE_HAS_LPP (0) |
102 | #define MACHINE_HAS_TOPOLOGY (0) | 102 | #define MACHINE_HAS_TOPOLOGY (0) |
103 | #define MACHINE_HAS_TE (0) | 103 | #define MACHINE_HAS_TE (0) |
104 | #define MACHINE_HAS_RRBM (0) | 104 | #define MACHINE_HAS_RRBM (0) |
@@ -111,7 +111,7 @@ extern unsigned int s390_user_mode; | |||
111 | #define MACHINE_HAS_MVCOS (S390_lowcore.machine_flags & MACHINE_FLAG_MVCOS) | 111 | #define MACHINE_HAS_MVCOS (S390_lowcore.machine_flags & MACHINE_FLAG_MVCOS) |
112 | #define MACHINE_HAS_EDAT1 (S390_lowcore.machine_flags & MACHINE_FLAG_EDAT1) | 112 | #define MACHINE_HAS_EDAT1 (S390_lowcore.machine_flags & MACHINE_FLAG_EDAT1) |
113 | #define MACHINE_HAS_EDAT2 (S390_lowcore.machine_flags & MACHINE_FLAG_EDAT2) | 113 | #define MACHINE_HAS_EDAT2 (S390_lowcore.machine_flags & MACHINE_FLAG_EDAT2) |
114 | #define MACHINE_HAS_SPP (S390_lowcore.machine_flags & MACHINE_FLAG_SPP) | 114 | #define MACHINE_HAS_LPP (S390_lowcore.machine_flags & MACHINE_FLAG_LPP) |
115 | #define MACHINE_HAS_TOPOLOGY (S390_lowcore.machine_flags & MACHINE_FLAG_TOPOLOGY) | 115 | #define MACHINE_HAS_TOPOLOGY (S390_lowcore.machine_flags & MACHINE_FLAG_TOPOLOGY) |
116 | #define MACHINE_HAS_TE (S390_lowcore.machine_flags & MACHINE_FLAG_TE) | 116 | #define MACHINE_HAS_TE (S390_lowcore.machine_flags & MACHINE_FLAG_TE) |
117 | #define MACHINE_HAS_RRBM (S390_lowcore.machine_flags & MACHINE_FLAG_RRBM) | 117 | #define MACHINE_HAS_RRBM (S390_lowcore.machine_flags & MACHINE_FLAG_RRBM) |
diff --git a/arch/s390/kernel/dis.c b/arch/s390/kernel/dis.c index a7f9abd98cf2..c50665fe9435 100644 --- a/arch/s390/kernel/dis.c +++ b/arch/s390/kernel/dis.c | |||
@@ -840,7 +840,6 @@ static struct insn opcode_b2[] = { | |||
840 | { "stcke", 0x78, INSTR_S_RD }, | 840 | { "stcke", 0x78, INSTR_S_RD }, |
841 | { "sacf", 0x79, INSTR_S_RD }, | 841 | { "sacf", 0x79, INSTR_S_RD }, |
842 | { "stsi", 0x7d, INSTR_S_RD }, | 842 | { "stsi", 0x7d, INSTR_S_RD }, |
843 | { "spp", 0x80, INSTR_S_RD }, | ||
844 | { "srnm", 0x99, INSTR_S_RD }, | 843 | { "srnm", 0x99, INSTR_S_RD }, |
845 | { "stfpc", 0x9c, INSTR_S_RD }, | 844 | { "stfpc", 0x9c, INSTR_S_RD }, |
846 | { "lfpc", 0x9d, INSTR_S_RD }, | 845 | { "lfpc", 0x9d, INSTR_S_RD }, |
diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c index 1ee98e56fc6a..bda011e2f8ae 100644 --- a/arch/s390/kernel/early.c +++ b/arch/s390/kernel/early.c | |||
@@ -381,7 +381,7 @@ static __init void detect_machine_facilities(void) | |||
381 | if (test_facility(27)) | 381 | if (test_facility(27)) |
382 | S390_lowcore.machine_flags |= MACHINE_FLAG_MVCOS; | 382 | S390_lowcore.machine_flags |= MACHINE_FLAG_MVCOS; |
383 | if (test_facility(40)) | 383 | if (test_facility(40)) |
384 | S390_lowcore.machine_flags |= MACHINE_FLAG_SPP; | 384 | S390_lowcore.machine_flags |= MACHINE_FLAG_LPP; |
385 | if (test_facility(50) && test_facility(73)) | 385 | if (test_facility(50) && test_facility(73)) |
386 | S390_lowcore.machine_flags |= MACHINE_FLAG_TE; | 386 | S390_lowcore.machine_flags |= MACHINE_FLAG_TE; |
387 | if (test_facility(66)) | 387 | if (test_facility(66)) |
diff --git a/arch/s390/kernel/entry64.S b/arch/s390/kernel/entry64.S index 6d34e0c97a39..9c837c101297 100644 --- a/arch/s390/kernel/entry64.S +++ b/arch/s390/kernel/entry64.S | |||
@@ -72,9 +72,9 @@ _TIF_EXIT_SIE = (_TIF_SIGPENDING | _TIF_NEED_RESCHED | _TIF_MCCK_PENDING) | |||
72 | #endif | 72 | #endif |
73 | .endm | 73 | .endm |
74 | 74 | ||
75 | .macro SPP newpp | 75 | .macro LPP newpp |
76 | #if defined(CONFIG_KVM) || defined(CONFIG_KVM_MODULE) | 76 | #if defined(CONFIG_KVM) || defined(CONFIG_KVM_MODULE) |
77 | tm __LC_MACHINE_FLAGS+6,0x20 # MACHINE_FLAG_SPP | 77 | tm __LC_MACHINE_FLAGS+6,0x20 # MACHINE_FLAG_LPP |
78 | jz .+8 | 78 | jz .+8 |
79 | .insn s,0xb2800000,\newpp | 79 | .insn s,0xb2800000,\newpp |
80 | #endif | 80 | #endif |
@@ -96,7 +96,7 @@ _TIF_EXIT_SIE = (_TIF_SIGPENDING | _TIF_NEED_RESCHED | _TIF_MCCK_PENDING) | |||
96 | jhe .+22 | 96 | jhe .+22 |
97 | .endif | 97 | .endif |
98 | lg %r9,BASED(.Lsie_loop) | 98 | lg %r9,BASED(.Lsie_loop) |
99 | SPP BASED(.Lhost_id) # set host id | 99 | LPP BASED(.Lhost_id) # set host id |
100 | #endif | 100 | #endif |
101 | .endm | 101 | .endm |
102 | 102 | ||
@@ -967,10 +967,10 @@ sie_loop: | |||
967 | lctlg %c1,%c1,__GMAP_ASCE(%r14) # load primary asce | 967 | lctlg %c1,%c1,__GMAP_ASCE(%r14) # load primary asce |
968 | sie_gmap: | 968 | sie_gmap: |
969 | lg %r14,__SF_EMPTY(%r15) # get control block pointer | 969 | lg %r14,__SF_EMPTY(%r15) # get control block pointer |
970 | SPP __SF_EMPTY(%r15) # set guest id | 970 | LPP __SF_EMPTY(%r15) # set guest id |
971 | sie 0(%r14) | 971 | sie 0(%r14) |
972 | sie_done: | 972 | sie_done: |
973 | SPP __SF_EMPTY+16(%r15) # set host id | 973 | LPP __SF_EMPTY+16(%r15) # set host id |
974 | lg %r14,__LC_THREAD_INFO # pointer thread_info struct | 974 | lg %r14,__LC_THREAD_INFO # pointer thread_info struct |
975 | sie_exit: | 975 | sie_exit: |
976 | lctlg %c1,%c1,__LC_USER_ASCE # load primary asce | 976 | lctlg %c1,%c1,__LC_USER_ASCE # load primary asce |