diff options
Diffstat (limited to 'arch/s390/kernel/early.c')
-rw-r--r-- | arch/s390/kernel/early.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c index f9b144049dc9..cae14c499511 100644 --- a/arch/s390/kernel/early.c +++ b/arch/s390/kernel/early.c | |||
@@ -208,9 +208,12 @@ static noinline __init void detect_machine_type(void) | |||
208 | machine_flags |= MACHINE_FLAG_KVM; | 208 | machine_flags |= MACHINE_FLAG_KVM; |
209 | else | 209 | else |
210 | machine_flags |= MACHINE_FLAG_VM; | 210 | machine_flags |= MACHINE_FLAG_VM; |
211 | |||
212 | /* Store machine flags for setting up lowcore early */ | ||
213 | S390_lowcore.machine_flags = machine_flags; | ||
211 | } | 214 | } |
212 | 215 | ||
213 | static void early_pgm_check_handler(void) | 216 | static __init void early_pgm_check_handler(void) |
214 | { | 217 | { |
215 | unsigned long addr; | 218 | unsigned long addr; |
216 | const struct exception_table_entry *fixup; | 219 | const struct exception_table_entry *fixup; |
@@ -222,7 +225,7 @@ static void early_pgm_check_handler(void) | |||
222 | S390_lowcore.program_old_psw.addr = fixup->fixup | PSW_ADDR_AMODE; | 225 | S390_lowcore.program_old_psw.addr = fixup->fixup | PSW_ADDR_AMODE; |
223 | } | 226 | } |
224 | 227 | ||
225 | void setup_lowcore_early(void) | 228 | static noinline __init void setup_lowcore_early(void) |
226 | { | 229 | { |
227 | psw_t psw; | 230 | psw_t psw; |
228 | 231 | ||