You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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>
This commit is contained in:
committed by
Linus Torvalds
parent
0715501bf1
commit
a8b4fc4d7c
@@ -16,12 +16,15 @@
|
||||
|
||||
#define HOST_AUDIT_ARCH AUDIT_ARCH_X86_64
|
||||
|
||||
/* Also defined in sysdep/ptrace.h, so may already be defined. */
|
||||
#ifndef FS_BASE
|
||||
#define FS_BASE (21 * sizeof(unsigned long))
|
||||
#define GS_BASE (22 * sizeof(unsigned long))
|
||||
#define DS (23 * sizeof(unsigned long))
|
||||
#define ES (24 * sizeof(unsigned long))
|
||||
#define FS (25 * sizeof(unsigned long))
|
||||
#define GS (26 * sizeof(unsigned long))
|
||||
#endif
|
||||
|
||||
#define PT_REGS_RBX(r) UPT_RBX(&(r)->regs)
|
||||
#define PT_REGS_RCX(r) UPT_RCX(&(r)->regs)
|
||||
|
||||
Reference in New Issue
Block a user