uml: fix x86_64 core dump crash
authorJeff Dike <jdike@addtoit.com>
Fri, 31 Aug 2007 06:56:20 +0000 (23:56 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 31 Aug 2007 08:42:22 +0000 (01:42 -0700)
commitd1254b12c93e1e586137a2ffef71fd33cf273f35
treeb122f08030c920608996eb52cce1068030ffd3b6
parentc7ec16da5adc1c1b341b2a83bde7add17dcf811a
uml: fix x86_64 core dump crash

Stop UML crashing when trying to dump a process core on x86_64.  This is the
minimal fix to stop the crash - more things are broken here, and patches are
forthcoming.

The immediate thing to do is define ELF_CORE_COPY_REGS and
ELF_CORE_COPY_FPREGS.  Defining ELF_CORE_COPY_FPREGS allows dump_fpu to go
away.  It is defined in terms of save_fp_registers, so that needs to be added.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/os-Linux/sys-x86_64/registers.c
arch/um/sys-x86_64/ptrace.c
include/asm-um/elf-x86_64.h