diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-10-12 04:43:37 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-11-27 03:24:12 -0500 |
commit | df9694c7975ff9976368eb381388c61f65352aef (patch) | |
tree | 3f6fd34b593582248a293a9eaa4f89ae347ef169 /arch/s390/kernel/smp.c | |
parent | 8a07dd02d7615d91d65d6235f7232e3f9b5d347f (diff) |
s390/dump: streamline oldmem copy functions
Introduce two copy functions for the memory of the dumped system,
copy_oldmem_kernel() to copy to the virtual kernel address space
and copy_oldmem_user() to copy to user space.
Acked-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/smp.c')
-rw-r--r-- | arch/s390/kernel/smp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 7ad070e984f2..5e04acdc6290 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -546,8 +546,8 @@ static void __init __smp_store_cpu_state(struct save_area_ext *sa_ext, | |||
546 | 546 | ||
547 | if (is_boot_cpu) { | 547 | if (is_boot_cpu) { |
548 | /* Copy the registers of the boot CPU. */ | 548 | /* Copy the registers of the boot CPU. */ |
549 | copy_oldmem_page(1, (void *) &sa_ext->sa, sizeof(sa_ext->sa), | 549 | copy_oldmem_kernel(&sa_ext->sa, (void *) SAVE_AREA_BASE, |
550 | SAVE_AREA_BASE - PAGE_SIZE, 0); | 550 | sizeof(sa_ext->sa)); |
551 | if (MACHINE_HAS_VX) | 551 | if (MACHINE_HAS_VX) |
552 | save_vx_regs_safe(sa_ext->vx_regs); | 552 | save_vx_regs_safe(sa_ext->vx_regs); |
553 | return; | 553 | return; |