diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-09-27 04:50:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 11:26:16 -0400 |
commit | a8b4fc4d7c3ccf80d4fa1805cee85c06c2aa653e (patch) | |
tree | 55cc6eed8fccc96d5a50b2e947cc85f8caba7242 /include/asm-um | |
parent | 0715501bf1d915002d92e34e8a78ea889e5a0049 (diff) |
[PATCH] uml: fix missing x86_64 register definitions
The UML/x86_64 headers were missing ptrace support for some segment registers.
The underlying problem was that the x86_64 kernel uses user_regs_struct
rather than the ptrace register definitions in ptrace. This patch switches
UML/x86_64 to using user_regs_struct for its definitions of the host's
registers.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-um')
-rw-r--r-- | include/asm-um/ptrace-x86_64.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-um/ptrace-x86_64.h b/include/asm-um/ptrace-x86_64.h index 2074483e6ca4..03b4af4ac09a 100644 --- a/include/asm-um/ptrace-x86_64.h +++ b/include/asm-um/ptrace-x86_64.h | |||
@@ -16,12 +16,15 @@ | |||
16 | 16 | ||
17 | #define HOST_AUDIT_ARCH AUDIT_ARCH_X86_64 | 17 | #define HOST_AUDIT_ARCH AUDIT_ARCH_X86_64 |
18 | 18 | ||
19 | /* Also defined in sysdep/ptrace.h, so may already be defined. */ | ||
20 | #ifndef FS_BASE | ||
19 | #define FS_BASE (21 * sizeof(unsigned long)) | 21 | #define FS_BASE (21 * sizeof(unsigned long)) |
20 | #define GS_BASE (22 * sizeof(unsigned long)) | 22 | #define GS_BASE (22 * sizeof(unsigned long)) |
21 | #define DS (23 * sizeof(unsigned long)) | 23 | #define DS (23 * sizeof(unsigned long)) |
22 | #define ES (24 * sizeof(unsigned long)) | 24 | #define ES (24 * sizeof(unsigned long)) |
23 | #define FS (25 * sizeof(unsigned long)) | 25 | #define FS (25 * sizeof(unsigned long)) |
24 | #define GS (26 * sizeof(unsigned long)) | 26 | #define GS (26 * sizeof(unsigned long)) |
27 | #endif | ||
25 | 28 | ||
26 | #define PT_REGS_RBX(r) UPT_RBX(&(r)->regs) | 29 | #define PT_REGS_RBX(r) UPT_RBX(&(r)->regs) |
27 | #define PT_REGS_RCX(r) UPT_RCX(&(r)->regs) | 30 | #define PT_REGS_RCX(r) UPT_RCX(&(r)->regs) |