summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/compat.h
diff options
context:
space:
mode:
authorRoland McGrath2007-10-19 20:35:02 +0200
committerThomas Gleixner2007-10-19 20:35:02 +0200
commit95d1b8f98138b1300bfecd8fbf3a93e10e74dc5f (patch)
tree2ffc4313deab33760f3cdd4187c0e7133022270c /include/asm-x86/compat.h
parentx86: merge init_task_32/64.c (diff)
downloadkernel-qcow2-linux-95d1b8f98138b1300bfecd8fbf3a93e10e74dc5f.tar.gz
kernel-qcow2-linux-95d1b8f98138b1300bfecd8fbf3a93e10e74dc5f.tar.xz
kernel-qcow2-linux-95d1b8f98138b1300bfecd8fbf3a93e10e74dc5f.zip
x86: Use linux/elfcore-compat.h
This makes x86-64's ia32 code use the new linux/elfcore-compat.h, reducing some hand-copied duplication. Signed-off-by: Roland McGrath <roland@redhat.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Andi Kleen <ak@suse.de> Cc: "Luck, Tony" <tony.luck@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/compat.h')
-rw-r--r--include/asm-x86/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-x86/compat.h b/include/asm-x86/compat.h
index 53cb96b68a62..66ba7987184a 100644
--- a/include/asm-x86/compat.h
+++ b/include/asm-x86/compat.h
@@ -6,6 +6,7 @@
*/
#include <linux/types.h>
#include <linux/sched.h>
+#include <asm/user32.h>
#define COMPAT_USER_HZ 100
@@ -181,6 +182,11 @@ struct compat_shmid64_ds {
};
/*
+ * The type of struct elf_prstatus.pr_reg in compatible core dumps.
+ */
+typedef struct user_regs_struct32 compat_elf_gregset_t;
+
+/*
* A pointer passed in from user mode. This should not
* be used for syscall parameters, just declare them
* as pointers because the syscall entry code will have