Commit 347a8dc3b815f0c0fa62a1df075184ffe4cbdcf1
Committed by
Linus Torvalds
1 parent
9bbc8346fb
Exists in
master
and in
4 other branches
[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>
Showing 60 changed files with 183 additions and 208 deletions Side-by-side Diff
- arch/s390/Kconfig
- arch/s390/Makefile
- arch/s390/appldata/appldata_base.c
- arch/s390/crypto/crypt_s390.h
- arch/s390/defconfig
- arch/s390/kernel/Makefile
- arch/s390/kernel/cpcmd.c
- arch/s390/kernel/entry64.S
- arch/s390/kernel/head.S
- arch/s390/kernel/module.c
- arch/s390/kernel/process.c
- arch/s390/kernel/ptrace.c
- arch/s390/kernel/reipl_diag.c
- arch/s390/kernel/setup.c
- arch/s390/kernel/signal.c
- arch/s390/kernel/smp.c
- arch/s390/kernel/sys_s390.c
- arch/s390/kernel/traps.c
- arch/s390/kernel/vmlinux.lds.S
- arch/s390/lib/Makefile
- arch/s390/lib/spinlock.c
- arch/s390/mm/extmem.c
- arch/s390/mm/fault.c
- arch/s390/mm/init.c
- arch/s390/mm/mmap.c
- block/Kconfig
- crypto/Kconfig
- drivers/char/Kconfig
- drivers/char/hangcheck-timer.c
- drivers/char/watchdog/Kconfig
- drivers/input/evdev.c
- drivers/net/phy/Kconfig
- drivers/s390/block/Kconfig
- drivers/s390/block/dasd.c
- drivers/s390/block/dasd_diag.c
- drivers/s390/block/dasd_diag.h
- drivers/s390/block/dasd_eckd.c
- drivers/s390/block/dasd_fba.c
- drivers/s390/block/xpram.c
- drivers/s390/char/vmwatchdog.c
- drivers/s390/cio/cio.c
- drivers/s390/cio/device_id.c
- drivers/s390/cio/ioasm.h
- drivers/s390/cio/qdio.c
- drivers/s390/cio/qdio.h
- drivers/s390/crypto/z90hardware.c
- drivers/s390/net/Kconfig
- drivers/s390/net/claw.c
- drivers/s390/s390mach.c
- drivers/s390/sysinfo.c
- drivers/scsi/Kconfig
- fs/partitions/Kconfig
- fs/proc/array.c
- include/asm-s390/unistd.h
- include/linux/irq.h
- init/Kconfig
- init/do_mounts_rd.c
- kernel/panic.c
- kernel/sysctl.c
- lib/Kconfig.debug
arch/s390/Kconfig
... | ... | @@ -23,14 +23,14 @@ |
23 | 23 | |
24 | 24 | mainmenu "Linux Kernel Configuration" |
25 | 25 | |
26 | -config ARCH_S390 | |
26 | +config S390 | |
27 | 27 | bool |
28 | 28 | default y |
29 | 29 | |
30 | 30 | config UID16 |
31 | 31 | bool |
32 | 32 | default y |
33 | - depends on ARCH_S390X = 'n' | |
33 | + depends on !64BIT | |
34 | 34 | |
35 | 35 | source "init/Kconfig" |
36 | 36 | |
37 | 37 | |
... | ... | @@ -38,20 +38,12 @@ |
38 | 38 | |
39 | 39 | comment "Processor type and features" |
40 | 40 | |
41 | -config ARCH_S390X | |
41 | +config 64BIT | |
42 | 42 | bool "64 bit kernel" |
43 | 43 | help |
44 | 44 | Select this option if you have a 64 bit IBM zSeries machine |
45 | 45 | and want to use the 64 bit addressing mode. |
46 | 46 | |
47 | -config 64BIT | |
48 | - def_bool ARCH_S390X | |
49 | - | |
50 | -config ARCH_S390_31 | |
51 | - bool | |
52 | - depends on ARCH_S390X = 'n' | |
53 | - default y | |
54 | - | |
55 | 47 | config SMP |
56 | 48 | bool "Symmetric multi-processing support" |
57 | 49 | ---help--- |
58 | 50 | |
59 | 51 | |
... | ... | @@ -101,20 +93,15 @@ |
101 | 93 | on older S/390 machines. Say Y unless you know your machine doesn't |
102 | 94 | need this. |
103 | 95 | |
104 | -config S390_SUPPORT | |
96 | +config COMPAT | |
105 | 97 | bool "Kernel support for 31 bit emulation" |
106 | - depends on ARCH_S390X | |
98 | + depends on 64BIT | |
107 | 99 | help |
108 | 100 | Select this option if you want to enable your system kernel to |
109 | 101 | handle system-calls from ELF binaries for 31 bit ESA. This option |
110 | 102 | (and some other stuff like libraries and such) is needed for |
111 | 103 | executing 31 bit applications. It is safe to say "Y". |
112 | 104 | |
113 | -config COMPAT | |
114 | - bool | |
115 | - depends on S390_SUPPORT | |
116 | - default y | |
117 | - | |
118 | 105 | config SYSVIPC_COMPAT |
119 | 106 | bool |
120 | 107 | depends on COMPAT && SYSVIPC |
... | ... | @@ -122,7 +109,7 @@ |
122 | 109 | |
123 | 110 | config BINFMT_ELF32 |
124 | 111 | tristate "Kernel support for 31 bit ELF binaries" |
125 | - depends on S390_SUPPORT | |
112 | + depends on COMPAT | |
126 | 113 | help |
127 | 114 | This allows you to run 32-bit Linux/ELF binaries on your zSeries |
128 | 115 | in 64 bit mode. Everybody wants this; say Y. |
... | ... | @@ -135,7 +122,7 @@ |
135 | 122 | |
136 | 123 | config MARCH_G5 |
137 | 124 | bool "S/390 model G5 and G6" |
138 | - depends on ARCH_S390_31 | |
125 | + depends on !64BIT | |
139 | 126 | help |
140 | 127 | Select this to build a 31 bit kernel that works |
141 | 128 | on all S/390 and zSeries machines. |
arch/s390/Makefile
... | ... | @@ -13,16 +13,14 @@ |
13 | 13 | # Copyright (C) 1994 by Linus Torvalds |
14 | 14 | # |
15 | 15 | |
16 | -ifdef CONFIG_ARCH_S390_31 | |
16 | +ifndef CONFIG_64BIT | |
17 | 17 | LDFLAGS := -m elf_s390 |
18 | 18 | CFLAGS += -m31 |
19 | 19 | AFLAGS += -m31 |
20 | 20 | UTS_MACHINE := s390 |
21 | 21 | STACK_SIZE := 8192 |
22 | 22 | CHECKFLAGS += -D__s390__ |
23 | -endif | |
24 | - | |
25 | -ifdef CONFIG_ARCH_S390X | |
23 | +else | |
26 | 24 | LDFLAGS := -m elf64_s390 |
27 | 25 | MODFLAGS += -fpic -D__PIC__ |
28 | 26 | CFLAGS += -m64 |
arch/s390/appldata/appldata_base.c
... | ... | @@ -40,7 +40,7 @@ |
40 | 40 | |
41 | 41 | #define TOD_MICRO 0x01000 /* nr. of TOD clock units |
42 | 42 | for 1 microsecond */ |
43 | -#ifndef CONFIG_ARCH_S390X | |
43 | +#ifndef CONFIG_64BIT | |
44 | 44 | |
45 | 45 | #define APPLDATA_START_INTERVAL_REC 0x00 /* Function codes for */ |
46 | 46 | #define APPLDATA_STOP_REC 0x01 /* DIAG 0xDC */ |
47 | 47 | |
... | ... | @@ -54,13 +54,13 @@ |
54 | 54 | #define APPLDATA_GEN_EVENT_RECORD 0x82 |
55 | 55 | #define APPLDATA_START_CONFIG_REC 0x83 |
56 | 56 | |
57 | -#endif /* CONFIG_ARCH_S390X */ | |
57 | +#endif /* CONFIG_64BIT */ | |
58 | 58 | |
59 | 59 | |
60 | 60 | /* |
61 | 61 | * Parameter list for DIAGNOSE X'DC' |
62 | 62 | */ |
63 | -#ifndef CONFIG_ARCH_S390X | |
63 | +#ifndef CONFIG_64BIT | |
64 | 64 | struct appldata_parameter_list { |
65 | 65 | u16 diag; /* The DIAGNOSE code X'00DC' */ |
66 | 66 | u8 function; /* The function code for the DIAGNOSE */ |
... | ... | @@ -82,7 +82,7 @@ |
82 | 82 | u64 product_id_addr; |
83 | 83 | u64 buffer_addr; |
84 | 84 | }; |
85 | -#endif /* CONFIG_ARCH_S390X */ | |
85 | +#endif /* CONFIG_64BIT */ | |
86 | 86 | |
87 | 87 | /* |
88 | 88 | * /proc entries (sysctl) |
arch/s390/crypto/crypt_s390.h
... | ... | @@ -112,7 +112,7 @@ |
112 | 112 | * [ret] is the variable to receive the error code |
113 | 113 | * [ERR] is the error code value |
114 | 114 | */ |
115 | -#ifndef __s390x__ | |
115 | +#ifndef CONFIG_64BIT | |
116 | 116 | #define __crypt_s390_fixup \ |
117 | 117 | ".section .fixup,\"ax\" \n" \ |
118 | 118 | "7: lhi %0,%h[e1] \n" \ |
... | ... | @@ -129,7 +129,7 @@ |
129 | 129 | " .long 0b,7b \n" \ |
130 | 130 | " .long 1b,8b \n" \ |
131 | 131 | ".previous" |
132 | -#else /* __s390x__ */ | |
132 | +#else /* CONFIG_64BIT */ | |
133 | 133 | #define __crypt_s390_fixup \ |
134 | 134 | ".section .fixup,\"ax\" \n" \ |
135 | 135 | "7: lhi %0,%h[e1] \n" \ |
... | ... | @@ -142,7 +142,7 @@ |
142 | 142 | " .quad 0b,7b \n" \ |
143 | 143 | " .quad 1b,8b \n" \ |
144 | 144 | ".previous" |
145 | -#endif /* __s390x__ */ | |
145 | +#endif /* CONFIG_64BIT */ | |
146 | 146 | |
147 | 147 | /* |
148 | 148 | * Standard code for setting the result of s390 crypto instructions. |
149 | 149 | |
... | ... | @@ -150,10 +150,10 @@ |
150 | 150 | * [result]: the register containing the result (e.g. second operand length |
151 | 151 | * to compute number of processed bytes]. |
152 | 152 | */ |
153 | -#ifndef __s390x__ | |
153 | +#ifndef CONFIG_64BIT | |
154 | 154 | #define __crypt_s390_set_result \ |
155 | 155 | " lr %0,%[result] \n" |
156 | -#else /* __s390x__ */ | |
156 | +#else /* CONFIG_64BIT */ | |
157 | 157 | #define __crypt_s390_set_result \ |
158 | 158 | " lgr %0,%[result] \n" |
159 | 159 | #endif |
arch/s390/defconfig
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | CONFIG_MMU=y |
7 | 7 | CONFIG_RWSEM_XCHGADD_ALGORITHM=y |
8 | 8 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
9 | -CONFIG_ARCH_S390=y | |
9 | +CONFIG_S390=y | |
10 | 10 | CONFIG_UID16=y |
11 | 11 | |
12 | 12 | # |
13 | 13 | |
... | ... | @@ -89,9 +89,7 @@ |
89 | 89 | # |
90 | 90 | # Processor type and features |
91 | 91 | # |
92 | -# CONFIG_ARCH_S390X is not set | |
93 | 92 | # CONFIG_64BIT is not set |
94 | -CONFIG_ARCH_S390_31=y | |
95 | 93 | CONFIG_SMP=y |
96 | 94 | CONFIG_NR_CPUS=32 |
97 | 95 | CONFIG_HOTPLUG_CPU=y |
arch/s390/kernel/Makefile
... | ... | @@ -8,30 +8,25 @@ |
8 | 8 | setup.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o \ |
9 | 9 | semaphore.o s390_ext.o debug.o profile.o irq.o reipl_diag.o |
10 | 10 | |
11 | +obj-y += $(if $(CONFIG_64BIT),entry64.o,entry.o) | |
12 | +obj-y += $(if $(CONFIG_64BIT),reipl64.o,reipl.o) | |
13 | + | |
11 | 14 | extra-y += head.o init_task.o vmlinux.lds |
12 | 15 | |
13 | 16 | obj-$(CONFIG_MODULES) += s390_ksyms.o module.o |
14 | 17 | obj-$(CONFIG_SMP) += smp.o |
15 | 18 | |
16 | -obj-$(CONFIG_S390_SUPPORT) += compat_linux.o compat_signal.o \ | |
19 | +obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o \ | |
17 | 20 | compat_ioctl.o compat_wrapper.o \ |
18 | 21 | compat_exec_domain.o |
19 | 22 | obj-$(CONFIG_BINFMT_ELF32) += binfmt_elf32.o |
20 | 23 | |
21 | -obj-$(CONFIG_ARCH_S390_31) += entry.o reipl.o | |
22 | -obj-$(CONFIG_ARCH_S390X) += entry64.o reipl64.o | |
23 | - | |
24 | 24 | obj-$(CONFIG_VIRT_TIMER) += vtime.o |
25 | 25 | |
26 | 26 | # Kexec part |
27 | 27 | S390_KEXEC_OBJS := machine_kexec.o crash.o |
28 | -ifeq ($(CONFIG_ARCH_S390X),y) | |
29 | -S390_KEXEC_OBJS += relocate_kernel64.o | |
30 | -else | |
31 | -S390_KEXEC_OBJS += relocate_kernel.o | |
32 | -endif | |
28 | +S390_KEXEC_OBJS += $(if $(CONFIG_64BIT),relocate_kernel64.o,relocate_kernel.o) | |
33 | 29 | obj-$(CONFIG_KEXEC) += $(S390_KEXEC_OBJS) |
34 | - | |
35 | 30 | |
36 | 31 | # |
37 | 32 | # This is just to get the dependencies... |
arch/s390/kernel/cpcmd.c
... | ... | @@ -39,7 +39,7 @@ |
39 | 39 | |
40 | 40 | if (response != NULL && rlen > 0) { |
41 | 41 | memset(response, 0, rlen); |
42 | -#ifndef CONFIG_ARCH_S390X | |
42 | +#ifndef CONFIG_64BIT | |
43 | 43 | asm volatile ( "lra 2,0(%2)\n" |
44 | 44 | "lr 4,%3\n" |
45 | 45 | "o 4,%6\n" |
... | ... | @@ -55,7 +55,7 @@ |
55 | 55 | : "a" (cpcmd_buf), "d" (cmdlen), |
56 | 56 | "a" (response), "d" (rlen), "m" (mask) |
57 | 57 | : "cc", "2", "3", "4", "5" ); |
58 | -#else /* CONFIG_ARCH_S390X */ | |
58 | +#else /* CONFIG_64BIT */ | |
59 | 59 | asm volatile ( "lrag 2,0(%2)\n" |
60 | 60 | "lgr 4,%3\n" |
61 | 61 | "o 4,%6\n" |
62 | 62 | |
... | ... | @@ -73,11 +73,11 @@ |
73 | 73 | : "a" (cpcmd_buf), "d" (cmdlen), |
74 | 74 | "a" (response), "d" (rlen), "m" (mask) |
75 | 75 | : "cc", "2", "3", "4", "5" ); |
76 | -#endif /* CONFIG_ARCH_S390X */ | |
76 | +#endif /* CONFIG_64BIT */ | |
77 | 77 | EBCASC(response, rlen); |
78 | 78 | } else { |
79 | 79 | return_len = 0; |
80 | -#ifndef CONFIG_ARCH_S390X | |
80 | +#ifndef CONFIG_64BIT | |
81 | 81 | asm volatile ( "lra 2,0(%1)\n" |
82 | 82 | "lr 3,%2\n" |
83 | 83 | "diag 2,3,0x8\n" |
... | ... | @@ -85,7 +85,7 @@ |
85 | 85 | : "=d" (return_code) |
86 | 86 | : "a" (cpcmd_buf), "d" (cmdlen) |
87 | 87 | : "2", "3" ); |
88 | -#else /* CONFIG_ARCH_S390X */ | |
88 | +#else /* CONFIG_64BIT */ | |
89 | 89 | asm volatile ( "lrag 2,0(%1)\n" |
90 | 90 | "lgr 3,%2\n" |
91 | 91 | "sam31\n" |
... | ... | @@ -95,7 +95,7 @@ |
95 | 95 | : "=d" (return_code) |
96 | 96 | : "a" (cpcmd_buf), "d" (cmdlen) |
97 | 97 | : "2", "3" ); |
98 | -#endif /* CONFIG_ARCH_S390X */ | |
98 | +#endif /* CONFIG_64BIT */ | |
99 | 99 | } |
100 | 100 | spin_unlock_irqrestore(&cpcmd_lock, flags); |
101 | 101 | if (response_code != NULL) |
... | ... | @@ -105,7 +105,7 @@ |
105 | 105 | |
106 | 106 | EXPORT_SYMBOL(__cpcmd); |
107 | 107 | |
108 | -#ifdef CONFIG_ARCH_S390X | |
108 | +#ifdef CONFIG_64BIT | |
109 | 109 | int cpcmd(const char *cmd, char *response, int rlen, int *response_code) |
110 | 110 | { |
111 | 111 | char *lowbuf; |
... | ... | @@ -129,5 +129,5 @@ |
129 | 129 | } |
130 | 130 | |
131 | 131 | EXPORT_SYMBOL(cpcmd); |
132 | -#endif /* CONFIG_ARCH_S390X */ | |
132 | +#endif /* CONFIG_64BIT */ |
arch/s390/kernel/entry64.S
... | ... | @@ -213,7 +213,7 @@ |
213 | 213 | mvc SP_ARGS(8,%r15),SP_R7(%r15) |
214 | 214 | sysc_do_restart: |
215 | 215 | larl %r10,sys_call_table |
216 | -#ifdef CONFIG_S390_SUPPORT | |
216 | +#ifdef CONFIG_COMPAT | |
217 | 217 | tm __TI_flags+5(%r9),(_TIF_31BIT>>16) # running in 31 bit mode ? |
218 | 218 | jno sysc_noemu |
219 | 219 | larl %r10,sys_call_table_emu # use 31 bit emulation system calls |
... | ... | @@ -361,7 +361,7 @@ |
361 | 361 | la %r2,SP_PTREGS(%r15) # load pt_regs |
362 | 362 | jg sys_clone # branch to sys_clone |
363 | 363 | |
364 | -#ifdef CONFIG_S390_SUPPORT | |
364 | +#ifdef CONFIG_COMPAT | |
365 | 365 | sys32_clone_glue: |
366 | 366 | la %r2,SP_PTREGS(%r15) # load pt_regs |
367 | 367 | jg sys32_clone # branch to sys32_clone |
... | ... | @@ -383,7 +383,7 @@ |
383 | 383 | bnz 0(%r12) # it did fail -> store result in gpr2 |
384 | 384 | b 6(%r12) # SKIP STG 2,SP_R2(15) in |
385 | 385 | # system_call/sysc_tracesys |
386 | -#ifdef CONFIG_S390_SUPPORT | |
386 | +#ifdef CONFIG_COMPAT | |
387 | 387 | sys32_execve_glue: |
388 | 388 | la %r2,SP_PTREGS(%r15) # load pt_regs |
389 | 389 | lgr %r12,%r14 # save return address |
... | ... | @@ -398,7 +398,7 @@ |
398 | 398 | la %r2,SP_PTREGS(%r15) # load pt_regs as parameter |
399 | 399 | jg sys_sigreturn # branch to sys_sigreturn |
400 | 400 | |
401 | -#ifdef CONFIG_S390_SUPPORT | |
401 | +#ifdef CONFIG_COMPAT | |
402 | 402 | sys32_sigreturn_glue: |
403 | 403 | la %r2,SP_PTREGS(%r15) # load pt_regs as parameter |
404 | 404 | jg sys32_sigreturn # branch to sys32_sigreturn |
... | ... | @@ -408,7 +408,7 @@ |
408 | 408 | la %r2,SP_PTREGS(%r15) # load pt_regs as parameter |
409 | 409 | jg sys_rt_sigreturn # branch to sys_sigreturn |
410 | 410 | |
411 | -#ifdef CONFIG_S390_SUPPORT | |
411 | +#ifdef CONFIG_COMPAT | |
412 | 412 | sys32_rt_sigreturn_glue: |
413 | 413 | la %r2,SP_PTREGS(%r15) # load pt_regs as parameter |
414 | 414 | jg sys32_rt_sigreturn # branch to sys32_sigreturn |
... | ... | @@ -429,7 +429,7 @@ |
429 | 429 | la %r14,6(%r14) # skip store of return value |
430 | 430 | jg sys_sigsuspend # branch to sys_sigsuspend |
431 | 431 | |
432 | -#ifdef CONFIG_S390_SUPPORT | |
432 | +#ifdef CONFIG_COMPAT | |
433 | 433 | sys32_sigsuspend_glue: |
434 | 434 | llgfr %r4,%r4 # unsigned long |
435 | 435 | lgr %r5,%r4 # move mask back |
... | ... | @@ -449,7 +449,7 @@ |
449 | 449 | la %r14,6(%r14) # skip store of return value |
450 | 450 | jg sys_rt_sigsuspend # branch to sys_rt_sigsuspend |
451 | 451 | |
452 | -#ifdef CONFIG_S390_SUPPORT | |
452 | +#ifdef CONFIG_COMPAT | |
453 | 453 | sys32_rt_sigsuspend_glue: |
454 | 454 | llgfr %r3,%r3 # size_t |
455 | 455 | lgr %r4,%r3 # move sigsetsize parameter |
... | ... | @@ -464,7 +464,7 @@ |
464 | 464 | la %r4,SP_PTREGS(%r15) # load pt_regs as parameter |
465 | 465 | jg sys_sigaltstack # branch to sys_sigreturn |
466 | 466 | |
467 | -#ifdef CONFIG_S390_SUPPORT | |
467 | +#ifdef CONFIG_COMPAT | |
468 | 468 | sys32_sigaltstack_glue: |
469 | 469 | la %r4,SP_PTREGS(%r15) # load pt_regs as parameter |
470 | 470 | jg sys32_sigaltstack_wrapper # branch to sys_sigreturn |
... | ... | @@ -1009,7 +1009,7 @@ |
1009 | 1009 | #include "syscalls.S" |
1010 | 1010 | #undef SYSCALL |
1011 | 1011 | |
1012 | -#ifdef CONFIG_S390_SUPPORT | |
1012 | +#ifdef CONFIG_COMPAT | |
1013 | 1013 | |
1014 | 1014 | #define SYSCALL(esa,esame,emu) .long emu |
1015 | 1015 | .globl sys_call_table_emu |
arch/s390/kernel/head.S
... | ... | @@ -30,7 +30,7 @@ |
30 | 30 | #include <asm/thread_info.h> |
31 | 31 | #include <asm/page.h> |
32 | 32 | |
33 | -#ifdef CONFIG_ARCH_S390X | |
33 | +#ifdef CONFIG_64BIT | |
34 | 34 | #define ARCH_OFFSET 4 |
35 | 35 | #else |
36 | 36 | #define ARCH_OFFSET 0 |
... | ... | @@ -539,7 +539,7 @@ |
539 | 539 | .word 0 |
540 | 540 | .endm |
541 | 541 | |
542 | -#ifdef CONFIG_ARCH_S390X | |
542 | +#ifdef CONFIG_64BIT | |
543 | 543 | #include "head64.S" |
544 | 544 | #else |
545 | 545 | #include "head31.S" |
arch/s390/kernel/module.c
... | ... | @@ -37,11 +37,11 @@ |
37 | 37 | #define DEBUGP(fmt , ...) |
38 | 38 | #endif |
39 | 39 | |
40 | -#ifndef CONFIG_ARCH_S390X | |
40 | +#ifndef CONFIG_64BIT | |
41 | 41 | #define PLT_ENTRY_SIZE 12 |
42 | -#else /* CONFIG_ARCH_S390X */ | |
42 | +#else /* CONFIG_64BIT */ | |
43 | 43 | #define PLT_ENTRY_SIZE 20 |
44 | -#endif /* CONFIG_ARCH_S390X */ | |
44 | +#endif /* CONFIG_64BIT */ | |
45 | 45 | |
46 | 46 | void *module_alloc(unsigned long size) |
47 | 47 | { |
48 | 48 | |
49 | 49 | |
... | ... | @@ -294,17 +294,17 @@ |
294 | 294 | unsigned int *ip; |
295 | 295 | ip = me->module_core + me->arch.plt_offset + |
296 | 296 | info->plt_offset; |
297 | -#ifndef CONFIG_ARCH_S390X | |
297 | +#ifndef CONFIG_64BIT | |
298 | 298 | ip[0] = 0x0d105810; /* basr 1,0; l 1,6(1); br 1 */ |
299 | 299 | ip[1] = 0x100607f1; |
300 | 300 | ip[2] = val; |
301 | -#else /* CONFIG_ARCH_S390X */ | |
301 | +#else /* CONFIG_64BIT */ | |
302 | 302 | ip[0] = 0x0d10e310; /* basr 1,0; lg 1,10(1); br 1 */ |
303 | 303 | ip[1] = 0x100a0004; |
304 | 304 | ip[2] = 0x07f10000; |
305 | 305 | ip[3] = (unsigned int) (val >> 32); |
306 | 306 | ip[4] = (unsigned int) val; |
307 | -#endif /* CONFIG_ARCH_S390X */ | |
307 | +#endif /* CONFIG_64BIT */ | |
308 | 308 | info->plt_initialized = 1; |
309 | 309 | } |
310 | 310 | if (r_type == R_390_PLTOFF16 || |
arch/s390/kernel/process.c
... | ... | @@ -235,7 +235,7 @@ |
235 | 235 | /* Save access registers to new thread structure. */ |
236 | 236 | save_access_regs(&p->thread.acrs[0]); |
237 | 237 | |
238 | -#ifndef CONFIG_ARCH_S390X | |
238 | +#ifndef CONFIG_64BIT | |
239 | 239 | /* |
240 | 240 | * save fprs to current->thread.fp_regs to merge them with |
241 | 241 | * the emulated registers and then copy the result to the child. |
... | ... | @@ -247,7 +247,7 @@ |
247 | 247 | /* Set a new TLS ? */ |
248 | 248 | if (clone_flags & CLONE_SETTLS) |
249 | 249 | p->thread.acrs[0] = regs->gprs[6]; |
250 | -#else /* CONFIG_ARCH_S390X */ | |
250 | +#else /* CONFIG_64BIT */ | |
251 | 251 | /* Save the fpu registers to new thread structure. */ |
252 | 252 | save_fp_regs(&p->thread.fp_regs); |
253 | 253 | p->thread.user_seg = __pa((unsigned long) p->mm->pgd) | _REGION_TABLE; |
... | ... | @@ -260,7 +260,7 @@ |
260 | 260 | p->thread.acrs[1] = (unsigned int) regs->gprs[6]; |
261 | 261 | } |
262 | 262 | } |
263 | -#endif /* CONFIG_ARCH_S390X */ | |
263 | +#endif /* CONFIG_64BIT */ | |
264 | 264 | /* start new process with ar4 pointing to the correct address space */ |
265 | 265 | p->thread.mm_segment = get_fs(); |
266 | 266 | /* Don't copy debug registers */ |
267 | 267 | |
268 | 268 | |
... | ... | @@ -339,16 +339,16 @@ |
339 | 339 | */ |
340 | 340 | int dump_fpu (struct pt_regs * regs, s390_fp_regs *fpregs) |
341 | 341 | { |
342 | -#ifndef CONFIG_ARCH_S390X | |
342 | +#ifndef CONFIG_64BIT | |
343 | 343 | /* |
344 | 344 | * save fprs to current->thread.fp_regs to merge them with |
345 | 345 | * the emulated registers and then copy the result to the dump. |
346 | 346 | */ |
347 | 347 | save_fp_regs(¤t->thread.fp_regs); |
348 | 348 | memcpy(fpregs, ¤t->thread.fp_regs, sizeof(s390_fp_regs)); |
349 | -#else /* CONFIG_ARCH_S390X */ | |
349 | +#else /* CONFIG_64BIT */ | |
350 | 350 | save_fp_regs(fpregs); |
351 | -#endif /* CONFIG_ARCH_S390X */ | |
351 | +#endif /* CONFIG_64BIT */ | |
352 | 352 | return 1; |
353 | 353 | } |
354 | 354 |
arch/s390/kernel/ptrace.c
... | ... | @@ -42,7 +42,7 @@ |
42 | 42 | #include <asm/uaccess.h> |
43 | 43 | #include <asm/unistd.h> |
44 | 44 | |
45 | -#ifdef CONFIG_S390_SUPPORT | |
45 | +#ifdef CONFIG_COMPAT | |
46 | 46 | #include "compat_ptrace.h" |
47 | 47 | #endif |
48 | 48 | |
... | ... | @@ -59,7 +59,7 @@ |
59 | 59 | |
60 | 60 | if (per_info->single_step) { |
61 | 61 | per_info->control_regs.bits.starting_addr = 0; |
62 | -#ifdef CONFIG_S390_SUPPORT | |
62 | +#ifdef CONFIG_COMPAT | |
63 | 63 | if (test_thread_flag(TIF_31BIT)) |
64 | 64 | per_info->control_regs.bits.ending_addr = 0x7fffffffUL; |
65 | 65 | else |
... | ... | @@ -112,7 +112,7 @@ |
112 | 112 | clear_single_step(child); |
113 | 113 | } |
114 | 114 | |
115 | -#ifndef CONFIG_ARCH_S390X | |
115 | +#ifndef CONFIG_64BIT | |
116 | 116 | # define __ADDR_MASK 3 |
117 | 117 | #else |
118 | 118 | # define __ADDR_MASK 7 |
... | ... | @@ -138,7 +138,7 @@ |
138 | 138 | * an alignment of 4. Programmers from hell... |
139 | 139 | */ |
140 | 140 | mask = __ADDR_MASK; |
141 | -#ifdef CONFIG_ARCH_S390X | |
141 | +#ifdef CONFIG_64BIT | |
142 | 142 | if (addr >= (addr_t) &dummy->regs.acrs && |
143 | 143 | addr < (addr_t) &dummy->regs.orig_gpr2) |
144 | 144 | mask = 3; |
... | ... | @@ -160,7 +160,7 @@ |
160 | 160 | * access registers are stored in the thread structure |
161 | 161 | */ |
162 | 162 | offset = addr - (addr_t) &dummy->regs.acrs; |
163 | -#ifdef CONFIG_ARCH_S390X | |
163 | +#ifdef CONFIG_64BIT | |
164 | 164 | /* |
165 | 165 | * Very special case: old & broken 64 bit gdb reading |
166 | 166 | * from acrs[15]. Result is a 64 bit value. Read the |
... | ... | @@ -218,7 +218,7 @@ |
218 | 218 | * an alignment of 4. Programmers from hell indeed... |
219 | 219 | */ |
220 | 220 | mask = __ADDR_MASK; |
221 | -#ifdef CONFIG_ARCH_S390X | |
221 | +#ifdef CONFIG_64BIT | |
222 | 222 | if (addr >= (addr_t) &dummy->regs.acrs && |
223 | 223 | addr < (addr_t) &dummy->regs.orig_gpr2) |
224 | 224 | mask = 3; |
225 | 225 | |
... | ... | @@ -231,13 +231,13 @@ |
231 | 231 | * psw and gprs are stored on the stack |
232 | 232 | */ |
233 | 233 | if (addr == (addr_t) &dummy->regs.psw.mask && |
234 | -#ifdef CONFIG_S390_SUPPORT | |
234 | +#ifdef CONFIG_COMPAT | |
235 | 235 | data != PSW_MASK_MERGE(PSW_USER32_BITS, data) && |
236 | 236 | #endif |
237 | 237 | data != PSW_MASK_MERGE(PSW_USER_BITS, data)) |
238 | 238 | /* Invalid psw mask. */ |
239 | 239 | return -EINVAL; |
240 | -#ifndef CONFIG_ARCH_S390X | |
240 | +#ifndef CONFIG_64BIT | |
241 | 241 | if (addr == (addr_t) &dummy->regs.psw.addr) |
242 | 242 | /* I'd like to reject addresses without the |
243 | 243 | high order bit but older gdb's rely on it */ |
... | ... | @@ -250,7 +250,7 @@ |
250 | 250 | * access registers are stored in the thread structure |
251 | 251 | */ |
252 | 252 | offset = addr - (addr_t) &dummy->regs.acrs; |
253 | -#ifdef CONFIG_ARCH_S390X | |
253 | +#ifdef CONFIG_64BIT | |
254 | 254 | /* |
255 | 255 | * Very special case: old & broken 64 bit gdb writing |
256 | 256 | * to acrs[15] with a 64 bit value. Ignore the lower |
... | ... | @@ -357,7 +357,7 @@ |
357 | 357 | return ptrace_request(child, request, addr, data); |
358 | 358 | } |
359 | 359 | |
360 | -#ifdef CONFIG_S390_SUPPORT | |
360 | +#ifdef CONFIG_COMPAT | |
361 | 361 | /* |
362 | 362 | * Now the fun part starts... a 31 bit program running in the |
363 | 363 | * 31 bit emulation tracing another program. PTRACE_PEEKTEXT, |
... | ... | @@ -629,7 +629,7 @@ |
629 | 629 | return peek_user(child, addr, data); |
630 | 630 | if (request == PTRACE_POKEUSR && addr == PT_IEEE_IP) |
631 | 631 | return poke_user(child, addr, data); |
632 | -#ifdef CONFIG_S390_SUPPORT | |
632 | +#ifdef CONFIG_COMPAT | |
633 | 633 | if (request == PTRACE_PEEKUSR && |
634 | 634 | addr == PT32_IEEE_IP && test_thread_flag(TIF_31BIT)) |
635 | 635 | return peek_user_emu31(child, addr, data); |
... | ... | @@ -695,7 +695,7 @@ |
695 | 695 | |
696 | 696 | /* Do requests that differ for 31/64 bit */ |
697 | 697 | default: |
698 | -#ifdef CONFIG_S390_SUPPORT | |
698 | +#ifdef CONFIG_COMPAT | |
699 | 699 | if (test_thread_flag(TIF_31BIT)) |
700 | 700 | return do_ptrace_emu31(child, request, addr, data); |
701 | 701 | #endif |
arch/s390/kernel/reipl_diag.c
arch/s390/kernel/setup.c
... | ... | @@ -427,7 +427,7 @@ |
427 | 427 | __alloc_bootmem(PAGE_SIZE, PAGE_SIZE, 0) + PAGE_SIZE; |
428 | 428 | lc->current_task = (unsigned long) init_thread_union.thread_info.task; |
429 | 429 | lc->thread_info = (unsigned long) &init_thread_union; |
430 | -#ifndef CONFIG_ARCH_S390X | |
430 | +#ifndef CONFIG_64BIT | |
431 | 431 | if (MACHINE_HAS_IEEE) { |
432 | 432 | lc->extended_save_area_addr = (__u32) |
433 | 433 | __alloc_bootmem(PAGE_SIZE, PAGE_SIZE, 0); |
434 | 434 | |
435 | 435 | |
436 | 436 | |
... | ... | @@ -562,21 +562,21 @@ |
562 | 562 | /* |
563 | 563 | * print what head.S has found out about the machine |
564 | 564 | */ |
565 | -#ifndef CONFIG_ARCH_S390X | |
565 | +#ifndef CONFIG_64BIT | |
566 | 566 | printk((MACHINE_IS_VM) ? |
567 | 567 | "We are running under VM (31 bit mode)\n" : |
568 | 568 | "We are running native (31 bit mode)\n"); |
569 | 569 | printk((MACHINE_HAS_IEEE) ? |
570 | 570 | "This machine has an IEEE fpu\n" : |
571 | 571 | "This machine has no IEEE fpu\n"); |
572 | -#else /* CONFIG_ARCH_S390X */ | |
572 | +#else /* CONFIG_64BIT */ | |
573 | 573 | printk((MACHINE_IS_VM) ? |
574 | 574 | "We are running under VM (64 bit mode)\n" : |
575 | 575 | "We are running native (64 bit mode)\n"); |
576 | -#endif /* CONFIG_ARCH_S390X */ | |
576 | +#endif /* CONFIG_64BIT */ | |
577 | 577 | |
578 | 578 | ROOT_DEV = Root_RAM0; |
579 | -#ifndef CONFIG_ARCH_S390X | |
579 | +#ifndef CONFIG_64BIT | |
580 | 580 | memory_end = memory_size & ~0x400000UL; /* align memory end to 4MB */ |
581 | 581 | /* |
582 | 582 | * We need some free virtual space to be able to do vmalloc. |
583 | 583 | |
... | ... | @@ -585,9 +585,9 @@ |
585 | 585 | */ |
586 | 586 | if (memory_end > 1920*1024*1024) |
587 | 587 | memory_end = 1920*1024*1024; |
588 | -#else /* CONFIG_ARCH_S390X */ | |
588 | +#else /* CONFIG_64BIT */ | |
589 | 589 | memory_end = memory_size & ~0x200000UL; /* detected in head.s */ |
590 | -#endif /* CONFIG_ARCH_S390X */ | |
590 | +#endif /* CONFIG_64BIT */ | |
591 | 591 | |
592 | 592 | init_mm.start_code = PAGE_OFFSET; |
593 | 593 | init_mm.end_code = (unsigned long) &_etext; |
arch/s390/kernel/signal.c
arch/s390/kernel/smp.c
... | ... | @@ -402,7 +402,7 @@ |
402 | 402 | } |
403 | 403 | } |
404 | 404 | |
405 | -#ifndef CONFIG_ARCH_S390X | |
405 | +#ifndef CONFIG_64BIT | |
406 | 406 | /* |
407 | 407 | * this function sends a 'purge tlb' signal to another CPU. |
408 | 408 | */ |
... | ... | @@ -416,7 +416,7 @@ |
416 | 416 | on_each_cpu(smp_ptlb_callback, NULL, 0, 1); |
417 | 417 | } |
418 | 418 | EXPORT_SYMBOL(smp_ptlb_all); |
419 | -#endif /* ! CONFIG_ARCH_S390X */ | |
419 | +#endif /* ! CONFIG_64BIT */ | |
420 | 420 | |
421 | 421 | /* |
422 | 422 | * this function sends a 'reschedule' IPI to another CPU. |
... | ... | @@ -783,7 +783,7 @@ |
783 | 783 | if (stack == 0ULL) |
784 | 784 | panic("smp_boot_cpus failed to allocate memory\n"); |
785 | 785 | lowcore_ptr[i]->panic_stack = stack + (PAGE_SIZE); |
786 | -#ifndef __s390x__ | |
786 | +#ifndef CONFIG_64BIT | |
787 | 787 | if (MACHINE_HAS_IEEE) { |
788 | 788 | lowcore_ptr[i]->extended_save_area_addr = |
789 | 789 | (__u32) __get_free_pages(GFP_KERNEL,0); |
... | ... | @@ -793,7 +793,7 @@ |
793 | 793 | } |
794 | 794 | #endif |
795 | 795 | } |
796 | -#ifndef __s390x__ | |
796 | +#ifndef CONFIG_64BIT | |
797 | 797 | if (MACHINE_HAS_IEEE) |
798 | 798 | ctl_set_bit(14, 29); /* enable extended save area */ |
799 | 799 | #endif |
arch/s390/kernel/sys_s390.c
... | ... | @@ -26,9 +26,7 @@ |
26 | 26 | #include <linux/mman.h> |
27 | 27 | #include <linux/file.h> |
28 | 28 | #include <linux/utsname.h> |
29 | -#ifdef CONFIG_ARCH_S390X | |
30 | 29 | #include <linux/personality.h> |
31 | -#endif /* CONFIG_ARCH_S390X */ | |
32 | 30 | |
33 | 31 | #include <asm/uaccess.h> |
34 | 32 | #include <asm/ipc.h> |
... | ... | @@ -121,7 +119,7 @@ |
121 | 119 | return error; |
122 | 120 | } |
123 | 121 | |
124 | -#ifndef CONFIG_ARCH_S390X | |
122 | +#ifndef CONFIG_64BIT | |
125 | 123 | struct sel_arg_struct { |
126 | 124 | unsigned long n; |
127 | 125 | fd_set *inp, *outp, *exp; |
... | ... | @@ -138,7 +136,7 @@ |
138 | 136 | return sys_select(a.n, a.inp, a.outp, a.exp, a.tvp); |
139 | 137 | |
140 | 138 | } |
141 | -#endif /* CONFIG_ARCH_S390X */ | |
139 | +#endif /* CONFIG_64BIT */ | |
142 | 140 | |
143 | 141 | /* |
144 | 142 | * sys_ipc() is the de-multiplexer for the SysV IPC calls.. |
... | ... | @@ -211,7 +209,7 @@ |
211 | 209 | return -EINVAL; |
212 | 210 | } |
213 | 211 | |
214 | -#ifdef CONFIG_ARCH_S390X | |
212 | +#ifdef CONFIG_64BIT | |
215 | 213 | asmlinkage long s390x_newuname(struct new_utsname __user *name) |
216 | 214 | { |
217 | 215 | int ret = sys_newuname(name); |
218 | 216 | |
... | ... | @@ -235,12 +233,12 @@ |
235 | 233 | |
236 | 234 | return ret; |
237 | 235 | } |
238 | -#endif /* CONFIG_ARCH_S390X */ | |
236 | +#endif /* CONFIG_64BIT */ | |
239 | 237 | |
240 | 238 | /* |
241 | 239 | * Wrapper function for sys_fadvise64/fadvise64_64 |
242 | 240 | */ |
243 | -#ifndef CONFIG_ARCH_S390X | |
241 | +#ifndef CONFIG_64BIT | |
244 | 242 | |
245 | 243 | asmlinkage long |
246 | 244 | s390_fadvise64(int fd, u32 offset_high, u32 offset_low, size_t len, int advice) |
arch/s390/kernel/traps.c
... | ... | @@ -67,13 +67,13 @@ |
67 | 67 | |
68 | 68 | #define stack_pointer ({ void **sp; asm("la %0,0(15)" : "=&d" (sp)); sp; }) |
69 | 69 | |
70 | -#ifndef CONFIG_ARCH_S390X | |
70 | +#ifndef CONFIG_64BIT | |
71 | 71 | #define FOURLONG "%08lx %08lx %08lx %08lx\n" |
72 | 72 | static int kstack_depth_to_print = 12; |
73 | -#else /* CONFIG_ARCH_S390X */ | |
73 | +#else /* CONFIG_64BIT */ | |
74 | 74 | #define FOURLONG "%016lx %016lx %016lx %016lx\n" |
75 | 75 | static int kstack_depth_to_print = 20; |
76 | -#endif /* CONFIG_ARCH_S390X */ | |
76 | +#endif /* CONFIG_64BIT */ | |
77 | 77 | |
78 | 78 | /* |
79 | 79 | * For show_trace we have tree different stack to consider: |
80 | 80 | |
... | ... | @@ -702,12 +702,12 @@ |
702 | 702 | pgm_check_table[0x11] = &do_dat_exception; |
703 | 703 | pgm_check_table[0x12] = &translation_exception; |
704 | 704 | pgm_check_table[0x13] = &special_op_exception; |
705 | -#ifdef CONFIG_ARCH_S390X | |
705 | +#ifdef CONFIG_64BIT | |
706 | 706 | pgm_check_table[0x38] = &do_dat_exception; |
707 | 707 | pgm_check_table[0x39] = &do_dat_exception; |
708 | 708 | pgm_check_table[0x3A] = &do_dat_exception; |
709 | 709 | pgm_check_table[0x3B] = &do_dat_exception; |
710 | -#endif /* CONFIG_ARCH_S390X */ | |
710 | +#endif /* CONFIG_64BIT */ | |
711 | 711 | pgm_check_table[0x15] = &operand_exception; |
712 | 712 | pgm_check_table[0x1C] = &space_switch_exception; |
713 | 713 | pgm_check_table[0x1D] = &hfp_sqrt_exception; |
arch/s390/kernel/vmlinux.lds.S
arch/s390/lib/Makefile
arch/s390/lib/spinlock.c
arch/s390/mm/extmem.c
arch/s390/mm/fault.c
... | ... | @@ -31,17 +31,17 @@ |
31 | 31 | #include <asm/uaccess.h> |
32 | 32 | #include <asm/pgtable.h> |
33 | 33 | |
34 | -#ifndef CONFIG_ARCH_S390X | |
34 | +#ifndef CONFIG_64BIT | |
35 | 35 | #define __FAIL_ADDR_MASK 0x7ffff000 |
36 | 36 | #define __FIXUP_MASK 0x7fffffff |
37 | 37 | #define __SUBCODE_MASK 0x0200 |
38 | 38 | #define __PF_RES_FIELD 0ULL |
39 | -#else /* CONFIG_ARCH_S390X */ | |
39 | +#else /* CONFIG_64BIT */ | |
40 | 40 | #define __FAIL_ADDR_MASK -4096L |
41 | 41 | #define __FIXUP_MASK ~0L |
42 | 42 | #define __SUBCODE_MASK 0x0600 |
43 | 43 | #define __PF_RES_FIELD 0x8000000000000000ULL |
44 | -#endif /* CONFIG_ARCH_S390X */ | |
44 | +#endif /* CONFIG_64BIT */ | |
45 | 45 | |
46 | 46 | #ifdef CONFIG_SYSCTL |
47 | 47 | extern int sysctl_userprocess_debug; |
48 | 48 | |
49 | 49 | |
... | ... | @@ -393,11 +393,11 @@ |
393 | 393 | "2:\n" |
394 | 394 | ".section __ex_table,\"a\"\n" |
395 | 395 | " .align 4\n" |
396 | -#ifndef CONFIG_ARCH_S390X | |
396 | +#ifndef CONFIG_64BIT | |
397 | 397 | " .long 0b,1b\n" |
398 | -#else /* CONFIG_ARCH_S390X */ | |
398 | +#else /* CONFIG_64BIT */ | |
399 | 399 | " .quad 0b,1b\n" |
400 | -#endif /* CONFIG_ARCH_S390X */ | |
400 | +#endif /* CONFIG_64BIT */ | |
401 | 401 | ".previous" |
402 | 402 | : "=d" (rc) : "a" (&refbk), "m" (refbk) : "cc" ); |
403 | 403 | __ctl_set_bit(0, 9); |
404 | 404 | |
405 | 405 | |
... | ... | @@ -417,11 +417,11 @@ |
417 | 417 | "0:\n" |
418 | 418 | ".section __ex_table,\"a\"\n" |
419 | 419 | " .align 4\n" |
420 | -#ifndef CONFIG_ARCH_S390X | |
420 | +#ifndef CONFIG_64BIT | |
421 | 421 | " .long 0b,0b\n" |
422 | -#else /* CONFIG_ARCH_S390X */ | |
422 | +#else /* CONFIG_64BIT */ | |
423 | 423 | " .quad 0b,0b\n" |
424 | -#endif /* CONFIG_ARCH_S390X */ | |
424 | +#endif /* CONFIG_64BIT */ | |
425 | 425 | ".previous" |
426 | 426 | : : "a" (&refbk), "m" (refbk) : "cc" ); |
427 | 427 | } |
arch/s390/mm/init.c
... | ... | @@ -44,7 +44,7 @@ |
44 | 44 | { |
45 | 45 | if (addr >= 0x7ff00000) |
46 | 46 | return; |
47 | -#ifdef __s390x__ | |
47 | +#ifdef CONFIG_64BIT | |
48 | 48 | asm volatile ( |
49 | 49 | " sam31\n" |
50 | 50 | " diag %0,%0,0x10\n" |
... | ... | @@ -106,7 +106,7 @@ |
106 | 106 | * paging_init() sets up the page tables |
107 | 107 | */ |
108 | 108 | |
109 | -#ifndef CONFIG_ARCH_S390X | |
109 | +#ifndef CONFIG_64BIT | |
110 | 110 | void __init paging_init(void) |
111 | 111 | { |
112 | 112 | pgd_t * pg_dir; |
... | ... | @@ -175,7 +175,7 @@ |
175 | 175 | return; |
176 | 176 | } |
177 | 177 | |
178 | -#else /* CONFIG_ARCH_S390X */ | |
178 | +#else /* CONFIG_64BIT */ | |
179 | 179 | void __init paging_init(void) |
180 | 180 | { |
181 | 181 | pgd_t * pg_dir; |
... | ... | @@ -256,7 +256,7 @@ |
256 | 256 | |
257 | 257 | return; |
258 | 258 | } |
259 | -#endif /* CONFIG_ARCH_S390X */ | |
259 | +#endif /* CONFIG_64BIT */ | |
260 | 260 | |
261 | 261 | void __init mem_init(void) |
262 | 262 | { |
arch/s390/mm/mmap.c
block/Kconfig
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | #for instance. |
6 | 6 | config LBD |
7 | 7 | bool "Support for Large Block Devices" |
8 | - depends on X86 || (MIPS && 32BIT) || PPC32 || ARCH_S390_31 || SUPERH || UML | |
8 | + depends on X86 || (MIPS && 32BIT) || PPC32 || (S390 && !64BIT) || SUPERH || UML | |
9 | 9 | help |
10 | 10 | Say Y here if you want to attach large (bigger than 2TB) discs to |
11 | 11 | your machine, or if you want to have a raid or loopback device |
crypto/Kconfig
... | ... | @@ -42,7 +42,7 @@ |
42 | 42 | |
43 | 43 | config CRYPTO_SHA1_S390 |
44 | 44 | tristate "SHA1 digest algorithm (s390)" |
45 | - depends on CRYPTO && ARCH_S390 | |
45 | + depends on CRYPTO && S390 | |
46 | 46 | help |
47 | 47 | This is the s390 hardware accelerated implementation of the |
48 | 48 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2). |
... | ... | @@ -58,7 +58,7 @@ |
58 | 58 | |
59 | 59 | config CRYPTO_SHA256_S390 |
60 | 60 | tristate "SHA256 digest algorithm (s390)" |
61 | - depends on CRYPTO && ARCH_S390 | |
61 | + depends on CRYPTO && S390 | |
62 | 62 | help |
63 | 63 | This is the s390 hardware accelerated implementation of the |
64 | 64 | SHA256 secure hash standard (DFIPS 180-2). |
... | ... | @@ -111,7 +111,7 @@ |
111 | 111 | |
112 | 112 | config CRYPTO_DES_S390 |
113 | 113 | tristate "DES and Triple DES cipher algorithms (s390)" |
114 | - depends on CRYPTO && ARCH_S390 | |
114 | + depends on CRYPTO && S390 | |
115 | 115 | help |
116 | 116 | DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3). |
117 | 117 | |
... | ... | @@ -217,7 +217,7 @@ |
217 | 217 | |
218 | 218 | config CRYPTO_AES_S390 |
219 | 219 | tristate "AES cipher algorithms (s390)" |
220 | - depends on CRYPTO && ARCH_S390 | |
220 | + depends on CRYPTO && S390 | |
221 | 221 | help |
222 | 222 | This is the s390 hardware accelerated implementation of the |
223 | 223 | AES cipher algorithms (FIPS-197). AES uses the Rijndael |
drivers/char/Kconfig
... | ... | @@ -985,7 +985,7 @@ |
985 | 985 | |
986 | 986 | config HANGCHECK_TIMER |
987 | 987 | tristate "Hangcheck timer" |
988 | - depends on X86 || IA64 || PPC64 || ARCH_S390 | |
988 | + depends on X86 || IA64 || PPC64 || S390 | |
989 | 989 | help |
990 | 990 | The hangcheck-timer module detects when the system has gone |
991 | 991 | out to lunch past a certain margin. It can reboot the system |
drivers/char/hangcheck-timer.c
... | ... | @@ -120,7 +120,7 @@ |
120 | 120 | #if defined(CONFIG_X86) |
121 | 121 | # define HAVE_MONOTONIC |
122 | 122 | # define TIMER_FREQ 1000000000ULL |
123 | -#elif defined(CONFIG_ARCH_S390) | |
123 | +#elif defined(CONFIG_S390) | |
124 | 124 | /* FA240000 is 1 Second in the IBM time universe (Page 4-38 Principles of Op for zSeries */ |
125 | 125 | # define TIMER_FREQ 0xFA240000ULL |
126 | 126 | #elif defined(CONFIG_IA64) |
drivers/char/watchdog/Kconfig
... | ... | @@ -438,7 +438,7 @@ |
438 | 438 | |
439 | 439 | config ZVM_WATCHDOG |
440 | 440 | tristate "z/VM Watchdog Timer" |
441 | - depends on WATCHDOG && ARCH_S390 | |
441 | + depends on WATCHDOG && S390 | |
442 | 442 | help |
443 | 443 | IBM s/390 and zSeries machines running under z/VM 5.1 or later |
444 | 444 | provide a virtual watchdog timer to their guest that cause a |
drivers/input/evdev.c
... | ... | @@ -157,7 +157,7 @@ |
157 | 157 | # define COMPAT_TEST test_thread_flag(TIF_IA32) |
158 | 158 | #elif defined(CONFIG_IA64) |
159 | 159 | # define COMPAT_TEST IS_IA32_PROCESS(ia64_task_regs(current)) |
160 | -#elif defined(CONFIG_ARCH_S390) | |
160 | +#elif defined(CONFIG_S390) | |
161 | 161 | # define COMPAT_TEST test_thread_flag(TIF_31BIT) |
162 | 162 | #elif defined(CONFIG_MIPS) |
163 | 163 | # define COMPAT_TEST (current->thread.mflags & MF_32BIT_ADDR) |
drivers/net/phy/Kconfig
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | |
7 | 7 | config PHYLIB |
8 | 8 | tristate "PHY Device support and infrastructure" |
9 | - depends on NET_ETHERNET && (BROKEN || !ARCH_S390) | |
9 | + depends on NET_ETHERNET && (BROKEN || !S390) | |
10 | 10 | help |
11 | 11 | Ethernet controllers are usually attached to PHY |
12 | 12 | devices. This option provides infrastructure for |
drivers/s390/block/Kconfig
1 | -if ARCH_S390 | |
1 | +if S390 | |
2 | 2 | |
3 | 3 | comment "S/390 block device drivers" |
4 | - depends on ARCH_S390 | |
4 | + depends on S390 | |
5 | 5 | |
6 | 6 | config BLK_DEV_XPRAM |
7 | 7 | tristate "XPRAM disk support" |
8 | - depends on ARCH_S390 | |
8 | + depends on S390 | |
9 | 9 | help |
10 | 10 | Select this option if you want to use your expanded storage on S/390 |
11 | 11 | or zSeries as a disk. This is useful as a _fast_ swap device if you |
... | ... | @@ -49,7 +49,7 @@ |
49 | 49 | |
50 | 50 | config DASD_DIAG |
51 | 51 | tristate "Support for DIAG access to Disks" |
52 | - depends on DASD && ( ARCH_S390X = 'n' || EXPERIMENTAL) | |
52 | + depends on DASD && ( 64BIT = 'n' || EXPERIMENTAL) | |
53 | 53 | help |
54 | 54 | Select this option if you want to use Diagnose250 command to access |
55 | 55 | Disks under VM. If you are not running under VM or unsure what it is, |
drivers/s390/block/dasd.c
drivers/s390/block/dasd_diag.c
drivers/s390/block/dasd_diag.h
... | ... | @@ -45,7 +45,7 @@ |
45 | 45 | } __attribute__ ((packed, aligned(4))); |
46 | 46 | |
47 | 47 | |
48 | -#ifdef CONFIG_ARCH_S390X | |
48 | +#ifdef CONFIG_64BIT | |
49 | 49 | #define DASD_DIAG_FLAGA_DEFAULT DASD_DIAG_FLAGA_FORMAT_64BIT |
50 | 50 | |
51 | 51 | typedef u64 blocknum_t; |
... | ... | @@ -86,7 +86,7 @@ |
86 | 86 | struct dasd_diag_bio *bio_list; |
87 | 87 | u8 spare4[8]; |
88 | 88 | } __attribute__ ((packed, aligned(8))); |
89 | -#else /* CONFIG_ARCH_S390X */ | |
89 | +#else /* CONFIG_64BIT */ | |
90 | 90 | #define DASD_DIAG_FLAGA_DEFAULT 0x0 |
91 | 91 | |
92 | 92 | typedef u32 blocknum_t; |
... | ... | @@ -125,5 +125,5 @@ |
125 | 125 | u32 interrupt_params; |
126 | 126 | u8 spare3[20]; |
127 | 127 | } __attribute__ ((packed, aligned(8))); |
128 | -#endif /* CONFIG_ARCH_S390X */ | |
128 | +#endif /* CONFIG_64BIT */ |
drivers/s390/block/dasd_eckd.c
... | ... | @@ -1041,7 +1041,7 @@ |
1041 | 1041 | /* Eckd can only do full blocks. */ |
1042 | 1042 | return ERR_PTR(-EINVAL); |
1043 | 1043 | count += bv->bv_len >> (device->s2b_shift + 9); |
1044 | -#if defined(CONFIG_ARCH_S390X) | |
1044 | +#if defined(CONFIG_64BIT) | |
1045 | 1045 | if (idal_is_needed (page_address(bv->bv_page), |
1046 | 1046 | bv->bv_len)) |
1047 | 1047 | cidaw += bv->bv_len >> (device->s2b_shift + 9); |
drivers/s390/block/dasd_fba.c
... | ... | @@ -271,7 +271,7 @@ |
271 | 271 | /* Fba can only do full blocks. */ |
272 | 272 | return ERR_PTR(-EINVAL); |
273 | 273 | count += bv->bv_len >> (device->s2b_shift + 9); |
274 | -#if defined(CONFIG_ARCH_S390X) | |
274 | +#if defined(CONFIG_64BIT) | |
275 | 275 | if (idal_is_needed (page_address(bv->bv_page), |
276 | 276 | bv->bv_len)) |
277 | 277 | cidaw += bv->bv_len / blksize; |
drivers/s390/block/xpram.c
... | ... | @@ -160,7 +160,7 @@ |
160 | 160 | "0: ipm %0\n" |
161 | 161 | " srl %0,28\n" |
162 | 162 | "1:\n" |
163 | -#ifndef CONFIG_ARCH_S390X | |
163 | +#ifndef CONFIG_64BIT | |
164 | 164 | ".section __ex_table,\"a\"\n" |
165 | 165 | " .align 4\n" |
166 | 166 | " .long 0b,1b\n" |
... | ... | @@ -208,7 +208,7 @@ |
208 | 208 | "0: ipm %0\n" |
209 | 209 | " srl %0,28\n" |
210 | 210 | "1:\n" |
211 | -#ifndef CONFIG_ARCH_S390X | |
211 | +#ifndef CONFIG_64BIT | |
212 | 212 | ".section __ex_table,\"a\"\n" |
213 | 213 | " .align 4\n" |
214 | 214 | " .long 0b,1b\n" |
drivers/s390/char/vmwatchdog.c
drivers/s390/cio/cio.c
... | ... | @@ -195,7 +195,7 @@ |
195 | 195 | sch->orb.spnd = sch->options.suspend; |
196 | 196 | sch->orb.ssic = sch->options.suspend && sch->options.inter; |
197 | 197 | sch->orb.lpm = (lpm != 0) ? (lpm & sch->opm) : sch->lpm; |
198 | -#ifdef CONFIG_ARCH_S390X | |
198 | +#ifdef CONFIG_64BIT | |
199 | 199 | /* |
200 | 200 | * for 64 bit we always support 64 bit IDAWs with 4k page size only |
201 | 201 | */ |
drivers/s390/cio/device_id.c
drivers/s390/cio/ioasm.h
... | ... | @@ -50,7 +50,7 @@ |
50 | 50 | "0: ipm %0\n" |
51 | 51 | " srl %0,28\n" |
52 | 52 | "1:\n" |
53 | -#ifdef CONFIG_ARCH_S390X | |
53 | +#ifdef CONFIG_64BIT | |
54 | 54 | ".section __ex_table,\"a\"\n" |
55 | 55 | " .align 8\n" |
56 | 56 | " .quad 0b,1b\n" |
... | ... | @@ -95,7 +95,7 @@ |
95 | 95 | "0: ipm %0\n" |
96 | 96 | " srl %0,28\n" |
97 | 97 | "1:\n" |
98 | -#ifdef CONFIG_ARCH_S390X | |
98 | +#ifdef CONFIG_64BIT | |
99 | 99 | ".section __ex_table,\"a\"\n" |
100 | 100 | " .align 8\n" |
101 | 101 | " .quad 0b,1b\n" |
drivers/s390/cio/qdio.c
... | ... | @@ -2394,7 +2394,7 @@ |
2394 | 2394 | sprintf(dbf_text,"hydrati%1x", hydra_thinints); |
2395 | 2395 | QDIO_DBF_TEXT0(0,setup,dbf_text); |
2396 | 2396 | |
2397 | -#ifdef CONFIG_ARCH_S390X | |
2397 | +#ifdef CONFIG_64BIT | |
2398 | 2398 | /* Check for QEBSM support in general (bit 58). */ |
2399 | 2399 | is_passthrough = css_general_characteristics.qebsm; |
2400 | 2400 | #endif |
drivers/s390/cio/qdio.h
... | ... | @@ -271,7 +271,7 @@ |
271 | 271 | do_sqbs(unsigned long sch, unsigned char state, int queue, |
272 | 272 | unsigned int *start, unsigned int *count) |
273 | 273 | { |
274 | -#ifdef CONFIG_ARCH_S390X | |
274 | +#ifdef CONFIG_64BIT | |
275 | 275 | register unsigned long _ccq asm ("0") = *count; |
276 | 276 | register unsigned long _sch asm ("1") = sch; |
277 | 277 | unsigned long _queuestart = ((unsigned long)queue << 32) | *start; |
... | ... | @@ -295,7 +295,7 @@ |
295 | 295 | do_eqbs(unsigned long sch, unsigned char *state, int queue, |
296 | 296 | unsigned int *start, unsigned int *count) |
297 | 297 | { |
298 | -#ifdef CONFIG_ARCH_S390X | |
298 | +#ifdef CONFIG_64BIT | |
299 | 299 | register unsigned long _ccq asm ("0") = *count; |
300 | 300 | register unsigned long _sch asm ("1") = sch; |
301 | 301 | unsigned long _queuestart = ((unsigned long)queue << 32) | *start; |
... | ... | @@ -323,7 +323,7 @@ |
323 | 323 | { |
324 | 324 | int cc; |
325 | 325 | |
326 | -#ifndef CONFIG_ARCH_S390X | |
326 | +#ifndef CONFIG_64BIT | |
327 | 327 | asm volatile ( |
328 | 328 | "lhi 0,2 \n\t" |
329 | 329 | "lr 1,%1 \n\t" |
... | ... | @@ -336,7 +336,7 @@ |
336 | 336 | : "d" (schid), "d" (mask1), "d" (mask2) |
337 | 337 | : "cc", "0", "1", "2", "3" |
338 | 338 | ); |
339 | -#else /* CONFIG_ARCH_S390X */ | |
339 | +#else /* CONFIG_64BIT */ | |
340 | 340 | asm volatile ( |
341 | 341 | "lghi 0,2 \n\t" |
342 | 342 | "llgfr 1,%1 \n\t" |
... | ... | @@ -349,7 +349,7 @@ |
349 | 349 | : "d" (schid), "d" (mask1), "d" (mask2) |
350 | 350 | : "cc", "0", "1", "2", "3" |
351 | 351 | ); |
352 | -#endif /* CONFIG_ARCH_S390X */ | |
352 | +#endif /* CONFIG_64BIT */ | |
353 | 353 | return cc; |
354 | 354 | } |
355 | 355 | |
... | ... | @@ -358,7 +358,7 @@ |
358 | 358 | { |
359 | 359 | int cc; |
360 | 360 | |
361 | -#ifndef CONFIG_ARCH_S390X | |
361 | +#ifndef CONFIG_64BIT | |
362 | 362 | asm volatile ( |
363 | 363 | "lhi 0,1 \n\t" |
364 | 364 | "lr 1,%1 \n\t" |
... | ... | @@ -370,7 +370,7 @@ |
370 | 370 | : "d" (schid), "d" (mask) |
371 | 371 | : "cc", "0", "1", "2", "memory" |
372 | 372 | ); |
373 | -#else /* CONFIG_ARCH_S390X */ | |
373 | +#else /* CONFIG_64BIT */ | |
374 | 374 | asm volatile ( |
375 | 375 | "lghi 0,1 \n\t" |
376 | 376 | "llgfr 1,%1 \n\t" |
... | ... | @@ -382,7 +382,7 @@ |
382 | 382 | : "d" (schid), "d" (mask) |
383 | 383 | : "cc", "0", "1", "2", "memory" |
384 | 384 | ); |
385 | -#endif /* CONFIG_ARCH_S390X */ | |
385 | +#endif /* CONFIG_64BIT */ | |
386 | 386 | |
387 | 387 | return cc; |
388 | 388 | } |
... | ... | @@ -394,7 +394,7 @@ |
394 | 394 | int cc; |
395 | 395 | __u32 busy_bit; |
396 | 396 | |
397 | -#ifndef CONFIG_ARCH_S390X | |
397 | +#ifndef CONFIG_64BIT | |
398 | 398 | asm volatile ( |
399 | 399 | "lhi 0,0 \n\t" |
400 | 400 | "lr 1,%2 \n\t" |
... | ... | @@ -424,7 +424,7 @@ |
424 | 424 | "i" (QDIO_SIGA_ERROR_ACCESS_EXCEPTION) |
425 | 425 | : "cc", "0", "1", "2", "memory" |
426 | 426 | ); |
427 | -#else /* CONFIG_ARCH_S390X */ | |
427 | +#else /* CONFIG_64BIT */ | |
428 | 428 | asm volatile ( |
429 | 429 | "llgfr 0,%5 \n\t" |
430 | 430 | "lgr 1,%2 \n\t" |
... | ... | @@ -449,7 +449,7 @@ |
449 | 449 | "i" (QDIO_SIGA_ERROR_ACCESS_EXCEPTION), "d" (fc) |
450 | 450 | : "cc", "0", "1", "2", "memory" |
451 | 451 | ); |
452 | -#endif /* CONFIG_ARCH_S390X */ | |
452 | +#endif /* CONFIG_64BIT */ | |
453 | 453 | |
454 | 454 | (*bb) = busy_bit; |
455 | 455 | return cc; |
456 | 456 | |
457 | 457 | |
... | ... | @@ -461,21 +461,21 @@ |
461 | 461 | |
462 | 462 | unsigned long time; |
463 | 463 | |
464 | -#ifndef CONFIG_ARCH_S390X | |
464 | +#ifndef CONFIG_64BIT | |
465 | 465 | asm volatile ( |
466 | 466 | "lhi 1,3 \n\t" |
467 | 467 | ".insn rre,0xb2650000,2,0 \n\t" |
468 | 468 | "lr %0,3 \n\t" |
469 | 469 | : "=d" (time) : : "cc", "1", "2", "3" |
470 | 470 | ); |
471 | -#else /* CONFIG_ARCH_S390X */ | |
471 | +#else /* CONFIG_64BIT */ | |
472 | 472 | asm volatile ( |
473 | 473 | "lghi 1,3 \n\t" |
474 | 474 | ".insn rre,0xb2650000,2,0 \n\t" |
475 | 475 | "lgr %0,3 \n\t" |
476 | 476 | : "=d" (time) : : "cc", "1", "2", "3" |
477 | 477 | ); |
478 | -#endif /* CONFIG_ARCH_S390X */ | |
478 | +#endif /* CONFIG_64BIT */ | |
479 | 479 | |
480 | 480 | return time; |
481 | 481 | } |
482 | 482 | |
483 | 483 | |
... | ... | @@ -542,11 +542,11 @@ |
542 | 542 | |
543 | 543 | #define MY_MODULE_STRING(x) #x |
544 | 544 | |
545 | -#ifdef CONFIG_ARCH_S390X | |
545 | +#ifdef CONFIG_64BIT | |
546 | 546 | #define QDIO_GET_ADDR(x) ((__u32)(unsigned long)x) |
547 | -#else /* CONFIG_ARCH_S390X */ | |
547 | +#else /* CONFIG_64BIT */ | |
548 | 548 | #define QDIO_GET_ADDR(x) ((__u32)(long)x) |
549 | -#endif /* CONFIG_ARCH_S390X */ | |
549 | +#endif /* CONFIG_64BIT */ | |
550 | 550 | |
551 | 551 | struct qdio_q { |
552 | 552 | volatile struct slsb slsb; |
drivers/s390/crypto/z90hardware.c
... | ... | @@ -785,7 +785,7 @@ |
785 | 785 | int ccode; |
786 | 786 | |
787 | 787 | asm volatile |
788 | -#ifdef __s390x__ | |
788 | +#ifdef CONFIG_64BIT | |
789 | 789 | (" llgfr 0,%4 \n" |
790 | 790 | " slgr 1,1 \n" |
791 | 791 | " lgr 2,1 \n" |
... | ... | @@ -855,7 +855,7 @@ |
855 | 855 | int ccode; |
856 | 856 | |
857 | 857 | asm volatile |
858 | -#ifdef __s390x__ | |
858 | +#ifdef CONFIG_64BIT | |
859 | 859 | (" llgfr 0,%2 \n" |
860 | 860 | " lghi 1,1 \n" |
861 | 861 | " sll 1,24 \n" |
... | ... | @@ -921,7 +921,7 @@ |
921 | 921 | int ccode; |
922 | 922 | |
923 | 923 | asm volatile |
924 | -#ifdef __s390x__ | |
924 | +#ifdef CONFIG_64BIT | |
925 | 925 | (" lgr 6,%3 \n" |
926 | 926 | " llgfr 7,%2 \n" |
927 | 927 | " llgt 0,0(6) \n" |
... | ... | @@ -1000,7 +1000,7 @@ |
1000 | 1000 | int ccode; |
1001 | 1001 | |
1002 | 1002 | asm volatile |
1003 | -#ifdef __s390x__ | |
1003 | +#ifdef CONFIG_64BIT | |
1004 | 1004 | (" llgfr 0,%2 \n" |
1005 | 1005 | " lgr 3,%4 \n" |
1006 | 1006 | " lgr 6,%3 \n" |
drivers/s390/net/Kconfig
drivers/s390/net/claw.c
... | ... | @@ -1603,7 +1603,7 @@ |
1603 | 1603 | __u32 ct, sw, rm, dup; |
1604 | 1604 | char *ptr, *rptr; |
1605 | 1605 | char tbuf[82], tdup[82]; |
1606 | -#if (CONFIG_ARCH_S390X) | |
1606 | +#if (CONFIG_64BIT) | |
1607 | 1607 | char addr[22]; |
1608 | 1608 | #else |
1609 | 1609 | char addr[12]; |
... | ... | @@ -1619,7 +1619,7 @@ |
1619 | 1619 | dup = 0; |
1620 | 1620 | for ( ct=0; ct < len; ct++, ptr++, rptr++ ) { |
1621 | 1621 | if (sw == 0) { |
1622 | -#if (CONFIG_ARCH_S390X) | |
1622 | +#if (CONFIG_64BIT) | |
1623 | 1623 | sprintf(addr, "%16.16lX",(unsigned long)rptr); |
1624 | 1624 | #else |
1625 | 1625 | sprintf(addr, "%8.8X",(__u32)rptr); |
... | ... | @@ -1634,7 +1634,7 @@ |
1634 | 1634 | if (sw == 8) { |
1635 | 1635 | strcat(bhex, " "); |
1636 | 1636 | } |
1637 | -#if (CONFIG_ARCH_S390X) | |
1637 | +#if (CONFIG_64BIT) | |
1638 | 1638 | sprintf(tbuf,"%2.2lX", (unsigned long)*ptr); |
1639 | 1639 | #else |
1640 | 1640 | sprintf(tbuf,"%2.2X", (__u32)*ptr); |
drivers/s390/s390mach.c
... | ... | @@ -246,7 +246,7 @@ |
246 | 246 | */ |
247 | 247 | kill_task = 1; |
248 | 248 | |
249 | -#ifndef __s390x__ | |
249 | +#ifndef CONFIG_64BIT | |
250 | 250 | asm volatile("ld 0,0(%0)\n" |
251 | 251 | "ld 2,8(%0)\n" |
252 | 252 | "ld 4,16(%0)\n" |
... | ... | @@ -255,7 +255,7 @@ |
255 | 255 | #endif |
256 | 256 | |
257 | 257 | if (MACHINE_HAS_IEEE) { |
258 | -#ifdef __s390x__ | |
258 | +#ifdef CONFIG_64BIT | |
259 | 259 | fpt_save_area = &S390_lowcore.floating_pt_save_area; |
260 | 260 | fpt_creg_save_area = &S390_lowcore.fpt_creg_save_area; |
261 | 261 | #else |
... | ... | @@ -314,7 +314,7 @@ |
314 | 314 | */ |
315 | 315 | s390_handle_damage("invalid control registers."); |
316 | 316 | else |
317 | -#ifdef __s390x__ | |
317 | +#ifdef CONFIG_64BIT | |
318 | 318 | asm volatile("lctlg 0,15,0(%0)" |
319 | 319 | : : "a" (&S390_lowcore.cregs_save_area)); |
320 | 320 | #else |
... | ... | @@ -327,7 +327,7 @@ |
327 | 327 | * can't write something sensible into that register. |
328 | 328 | */ |
329 | 329 | |
330 | -#ifdef __s390x__ | |
330 | +#ifdef CONFIG_64BIT | |
331 | 331 | /* |
332 | 332 | * See if we can revalidate the TOD programmable register with its |
333 | 333 | * old contents (should be zero) otherwise set it to zero. |
... | ... | @@ -384,7 +384,7 @@ |
384 | 384 | if (mci->b) { |
385 | 385 | /* Processing backup -> verify if we can survive this */ |
386 | 386 | u64 z_mcic, o_mcic, t_mcic; |
387 | -#ifdef __s390x__ | |
387 | +#ifdef CONFIG_64BIT | |
388 | 388 | z_mcic = (1ULL<<63 | 1ULL<<59 | 1ULL<<29); |
389 | 389 | o_mcic = (1ULL<<43 | 1ULL<<42 | 1ULL<<41 | 1ULL<<40 | |
390 | 390 | 1ULL<<36 | 1ULL<<35 | 1ULL<<34 | 1ULL<<32 | |
drivers/s390/sysinfo.c
drivers/scsi/Kconfig
... | ... | @@ -1815,7 +1815,7 @@ |
1815 | 1815 | |
1816 | 1816 | config ZFCP |
1817 | 1817 | tristate "FCP host bus adapter driver for IBM eServer zSeries" |
1818 | - depends on ARCH_S390 && QDIO && SCSI | |
1818 | + depends on S390 && QDIO && SCSI | |
1819 | 1819 | select SCSI_FC_ATTRS |
1820 | 1820 | help |
1821 | 1821 | If you want to access SCSI devices attached to your IBM eServer |
fs/partitions/Kconfig
... | ... | @@ -85,7 +85,7 @@ |
85 | 85 | |
86 | 86 | config IBM_PARTITION |
87 | 87 | bool "IBM disk label and partition support" |
88 | - depends on PARTITION_ADVANCED && ARCH_S390 | |
88 | + depends on PARTITION_ADVANCED && S390 | |
89 | 89 | help |
90 | 90 | Say Y here if you would like to be able to read the hard disk |
91 | 91 | partition table format used by IBM DASD disks operating under CMS. |
fs/proc/array.c
... | ... | @@ -308,7 +308,7 @@ |
308 | 308 | buffer = task_sig(task, buffer); |
309 | 309 | buffer = task_cap(task, buffer); |
310 | 310 | buffer = cpuset_task_status_allowed(task, buffer); |
311 | -#if defined(CONFIG_ARCH_S390) | |
311 | +#if defined(CONFIG_S390) | |
312 | 312 | buffer = task_show_regs(task, buffer); |
313 | 313 | #endif |
314 | 314 | return buffer - orig; |
include/asm-s390/unistd.h
... | ... | @@ -539,7 +539,7 @@ |
539 | 539 | #define __ARCH_WANT_SYS_SIGPENDING |
540 | 540 | #define __ARCH_WANT_SYS_SIGPROCMASK |
541 | 541 | #define __ARCH_WANT_SYS_RT_SIGACTION |
542 | -# ifdef CONFIG_ARCH_S390_31 | |
542 | +# ifndef CONFIG_64BIT | |
543 | 543 | # define __ARCH_WANT_STAT64 |
544 | 544 | # define __ARCH_WANT_SYS_TIME |
545 | 545 | # endif |
include/linux/irq.h
init/Kconfig
... | ... | @@ -189,7 +189,7 @@ |
189 | 189 | |
190 | 190 | config AUDITSYSCALL |
191 | 191 | bool "Enable system-call auditing support" |
192 | - depends on AUDIT && (X86 || PPC || PPC64 || ARCH_S390 || IA64 || UML || SPARC64) | |
192 | + depends on AUDIT && (X86 || PPC || PPC64 || S390 || IA64 || UML || SPARC64) | |
193 | 193 | default y if SECURITY_SELINUX |
194 | 194 | help |
195 | 195 | Enable low-overhead system-call auditing infrastructure that |
init/do_mounts_rd.c
... | ... | @@ -145,7 +145,7 @@ |
145 | 145 | int nblocks, i, disk; |
146 | 146 | char *buf = NULL; |
147 | 147 | unsigned short rotate = 0; |
148 | -#if !defined(CONFIG_ARCH_S390) && !defined(CONFIG_PPC_ISERIES) | |
148 | +#if !defined(CONFIG_S390) && !defined(CONFIG_PPC_ISERIES) | |
149 | 149 | char rotator[4] = { '|' , '/' , '-' , '\\' }; |
150 | 150 | #endif |
151 | 151 | |
... | ... | @@ -237,7 +237,7 @@ |
237 | 237 | } |
238 | 238 | sys_read(in_fd, buf, BLOCK_SIZE); |
239 | 239 | sys_write(out_fd, buf, BLOCK_SIZE); |
240 | -#if !defined(CONFIG_ARCH_S390) && !defined(CONFIG_PPC_ISERIES) | |
240 | +#if !defined(CONFIG_S390) && !defined(CONFIG_PPC_ISERIES) | |
241 | 241 | if (!(i % 16)) { |
242 | 242 | printk("%c\b", rotator[rotate & 0x3]); |
243 | 243 | rotate++; |
kernel/panic.c
... | ... | @@ -60,7 +60,7 @@ |
60 | 60 | long i; |
61 | 61 | static char buf[1024]; |
62 | 62 | va_list args; |
63 | -#if defined(CONFIG_ARCH_S390) | |
63 | +#if defined(CONFIG_S390) | |
64 | 64 | unsigned long caller = (unsigned long) __builtin_return_address(0); |
65 | 65 | #endif |
66 | 66 | |
... | ... | @@ -125,7 +125,7 @@ |
125 | 125 | printk(KERN_EMERG "Press Stop-A (L1-A) to return to the boot prom\n"); |
126 | 126 | } |
127 | 127 | #endif |
128 | -#if defined(CONFIG_ARCH_S390) | |
128 | +#if defined(CONFIG_S390) | |
129 | 129 | disabled_wait(caller); |
130 | 130 | #endif |
131 | 131 | local_irq_enable(); |
kernel/sysctl.c
... | ... | @@ -108,7 +108,7 @@ |
108 | 108 | extern int unaligned_enabled; |
109 | 109 | #endif |
110 | 110 | |
111 | -#ifdef CONFIG_ARCH_S390 | |
111 | +#ifdef CONFIG_S390 | |
112 | 112 | #ifdef CONFIG_MATHEMU |
113 | 113 | extern int sysctl_ieee_emulation_warnings; |
114 | 114 | #endif |
... | ... | @@ -542,7 +542,7 @@ |
542 | 542 | .extra1 = &minolduid, |
543 | 543 | .extra2 = &maxolduid, |
544 | 544 | }, |
545 | -#ifdef CONFIG_ARCH_S390 | |
545 | +#ifdef CONFIG_S390 | |
546 | 546 | #ifdef CONFIG_MATHEMU |
547 | 547 | { |
548 | 548 | .ctl_name = KERN_IEEE_EMULATION_WARNINGS, |
... | ... | @@ -644,7 +644,7 @@ |
644 | 644 | .mode = 0644, |
645 | 645 | .proc_handler = &proc_dointvec, |
646 | 646 | }, |
647 | -#if defined(CONFIG_ARCH_S390) | |
647 | +#if defined(CONFIG_S390) | |
648 | 648 | { |
649 | 649 | .ctl_name = KERN_SPIN_RETRY, |
650 | 650 | .procname = "spin_retry", |
lib/Kconfig.debug