diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-02-26 16:37:32 -0500 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-02-26 16:37:30 -0500 |
commit | f64ca21714f114a78b6c19ceabc7745b29913efc (patch) | |
tree | ef01f90c3c0547c37f6259de2fe274a3a47e082a /arch/s390/include/asm | |
parent | 987bcdacb18a3adc2a48d85c9b005069c2f4dd7b (diff) |
[S390] zfcpdump: remove cross arch dump support
Remove support to be able to dump 31 bit systems with a 64 bit dumper.
This is mostly useless since no distro ships 31 bit kernels together
with a 64 bit dumper.
We also get rid of a bit of hacky code.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r-- | arch/s390/include/asm/lowcore.h | 26 | ||||
-rw-r--r-- | arch/s390/include/asm/smp.h | 2 |
2 files changed, 11 insertions, 17 deletions
diff --git a/arch/s390/include/asm/lowcore.h b/arch/s390/include/asm/lowcore.h index c25dfac7dd76..8ed3c745cd07 100644 --- a/arch/s390/include/asm/lowcore.h +++ b/arch/s390/include/asm/lowcore.h | |||
@@ -144,7 +144,9 @@ void pgm_check_handler(void); | |||
144 | void mcck_int_handler(void); | 144 | void mcck_int_handler(void); |
145 | void io_int_handler(void); | 145 | void io_int_handler(void); |
146 | 146 | ||
147 | struct save_area_s390 { | 147 | #ifdef CONFIG_32BIT |
148 | |||
149 | struct save_area { | ||
148 | u32 ext_save; | 150 | u32 ext_save; |
149 | u64 timer; | 151 | u64 timer; |
150 | u64 clk_cmp; | 152 | u64 clk_cmp; |
@@ -158,7 +160,11 @@ struct save_area_s390 { | |||
158 | u32 ctrl_regs[16]; | 160 | u32 ctrl_regs[16]; |
159 | } __attribute__((packed)); | 161 | } __attribute__((packed)); |
160 | 162 | ||
161 | struct save_area_s390x { | 163 | #define SAVE_AREA_BASE offsetof(struct _lowcore, extended_save_area_addr) |
164 | |||
165 | #else /* CONFIG_32BIT */ | ||
166 | |||
167 | struct save_area { | ||
162 | u64 fp_regs[16]; | 168 | u64 fp_regs[16]; |
163 | u64 gp_regs[16]; | 169 | u64 gp_regs[16]; |
164 | u8 psw[16]; | 170 | u8 psw[16]; |
@@ -174,21 +180,9 @@ struct save_area_s390x { | |||
174 | u64 ctrl_regs[16]; | 180 | u64 ctrl_regs[16]; |
175 | } __attribute__((packed)); | 181 | } __attribute__((packed)); |
176 | 182 | ||
177 | union save_area { | 183 | #define SAVE_AREA_BASE offsetof(struct _lowcore, floating_pt_save_area) |
178 | struct save_area_s390 s390; | ||
179 | struct save_area_s390x s390x; | ||
180 | }; | ||
181 | |||
182 | #define SAVE_AREA_BASE_S390 0xd4 | ||
183 | #define SAVE_AREA_BASE_S390X 0x1200 | ||
184 | 184 | ||
185 | #ifndef __s390x__ | 185 | #endif /* CONFIG_32BIT */ |
186 | #define SAVE_AREA_SIZE sizeof(struct save_area_s390) | ||
187 | #define SAVE_AREA_BASE SAVE_AREA_BASE_S390 | ||
188 | #else | ||
189 | #define SAVE_AREA_SIZE sizeof(struct save_area_s390x) | ||
190 | #define SAVE_AREA_BASE SAVE_AREA_BASE_S390X | ||
191 | #endif | ||
192 | 186 | ||
193 | #ifndef __s390x__ | 187 | #ifndef __s390x__ |
194 | #define LC_ORDER 0 | 188 | #define LC_ORDER 0 |
diff --git a/arch/s390/include/asm/smp.h b/arch/s390/include/asm/smp.h index 2ab1141eeb50..9d2acb0b4847 100644 --- a/arch/s390/include/asm/smp.h +++ b/arch/s390/include/asm/smp.h | |||
@@ -29,7 +29,7 @@ extern int smp_cpu_polarization[]; | |||
29 | extern void arch_send_call_function_single_ipi(int cpu); | 29 | extern void arch_send_call_function_single_ipi(int cpu); |
30 | extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); | 30 | extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); |
31 | 31 | ||
32 | extern union save_area *zfcpdump_save_areas[NR_CPUS + 1]; | 32 | extern struct save_area *zfcpdump_save_areas[NR_CPUS + 1]; |
33 | 33 | ||
34 | #endif /* CONFIG_SMP */ | 34 | #endif /* CONFIG_SMP */ |
35 | 35 | ||