aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/s390mach.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2006-01-06 03:19:28 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 11:33:53 -0500
commit347a8dc3b815f0c0fa62a1df075184ffe4cbdcf1 (patch)
treea6ec76690127e87fe6efa42b6238caadd6c07e7b /drivers/s390/s390mach.c
parent9bbc8346fb21fad3f678220b067450e436e45dbf (diff)
[PATCH] s390: cleanup Kconfig
Sanitize some s390 Kconfig options. We have ARCH_S390, ARCH_S390X, ARCH_S390_31, 64BIT, S390_SUPPORT and COMPAT. Replace these 6 options by S390, 64BIT and COMPAT. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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 |