aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/s390mach.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/s390mach.c')
-rw-r--r--drivers/s390/s390mach.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/s390/s390mach.c b/drivers/s390/s390mach.c
index 7dad597ff86e..3bf466603512 100644
--- a/drivers/s390/s390mach.c
+++ b/drivers/s390/s390mach.c
@@ -246,7 +246,7 @@ s390_revalidate_registers(struct mci *mci)
246 */ 246 */
247 kill_task = 1; 247 kill_task = 1;
248 248
249#ifndef __s390x__ 249#ifndef CONFIG_64BIT
250 asm volatile("ld 0,0(%0)\n" 250 asm volatile("ld 0,0(%0)\n"
251 "ld 2,8(%0)\n" 251 "ld 2,8(%0)\n"
252 "ld 4,16(%0)\n" 252 "ld 4,16(%0)\n"
@@ -255,7 +255,7 @@ s390_revalidate_registers(struct mci *mci)
255#endif 255#endif
256 256
257 if (MACHINE_HAS_IEEE) { 257 if (MACHINE_HAS_IEEE) {
258#ifdef __s390x__ 258#ifdef CONFIG_64BIT
259 fpt_save_area = &S390_lowcore.floating_pt_save_area; 259 fpt_save_area = &S390_lowcore.floating_pt_save_area;
260 fpt_creg_save_area = &S390_lowcore.fpt_creg_save_area; 260 fpt_creg_save_area = &S390_lowcore.fpt_creg_save_area;
261#else 261#else
@@ -314,7 +314,7 @@ s390_revalidate_registers(struct mci *mci)
314 */ 314 */
315 s390_handle_damage("invalid control registers."); 315 s390_handle_damage("invalid control registers.");
316 else 316 else
317#ifdef __s390x__ 317#ifdef CONFIG_64BIT
318 asm volatile("lctlg 0,15,0(%0)" 318 asm volatile("lctlg 0,15,0(%0)"
319 : : "a" (&S390_lowcore.cregs_save_area)); 319 : : "a" (&S390_lowcore.cregs_save_area));
320#else 320#else
@@ -327,7 +327,7 @@ s390_revalidate_registers(struct mci *mci)
327 * can't write something sensible into that register. 327 * can't write something sensible into that register.
328 */ 328 */
329 329
330#ifdef __s390x__ 330#ifdef CONFIG_64BIT
331 /* 331 /*
332 * See if we can revalidate the TOD programmable register with its 332 * See if we can revalidate the TOD programmable register with its
333 * old contents (should be zero) otherwise set it to zero. 333 * old contents (should be zero) otherwise set it to zero.
@@ -384,7 +384,7 @@ s390_do_machine_check(struct pt_regs *regs)
384 if (mci->b) { 384 if (mci->b) {
385 /* Processing backup -> verify if we can survive this */ 385 /* Processing backup -> verify if we can survive this */
386 u64 z_mcic, o_mcic, t_mcic; 386 u64 z_mcic, o_mcic, t_mcic;
387#ifdef __s390x__ 387#ifdef CONFIG_64BIT
388 z_mcic = (1ULL<<63 | 1ULL<<59 | 1ULL<<29); 388 z_mcic = (1ULL<<63 | 1ULL<<59 | 1ULL<<29);
389 o_mcic = (1ULL<<43 | 1ULL<<42 | 1ULL<<41 | 1ULL<<40 | 389 o_mcic = (1ULL<<43 | 1ULL<<42 | 1ULL<<41 | 1ULL<<40 |
390 1ULL<<36 | 1ULL<<35 | 1ULL<<34 | 1ULL<<32 | 390 1ULL<<36 | 1ULL<<35 | 1ULL<<34 | 1ULL<<32 |