diff options
| author | Suresh Siddha <[email protected]> | 2010-02-22 22:51:33 +0000 |
|---|---|---|
| committer | H. Peter Anvin <[email protected]> | 2010-02-23 21:45:27 +0000 |
| commit | ff7fbc72e0c3ef7e94a27a3a918fd09ec9a30204 (patch) | |
| tree | 1e07cfb9d41d8c7c155ae781f901e287f3833273 /lib/debugobjects.c | |
| parent | ptrace: Fix ptrace_regset() comments and diagnose errors specifically (diff) | |
| download | kernel-ff7fbc72e0c3ef7e94a27a3a918fd09ec9a30204.tar.gz kernel-ff7fbc72e0c3ef7e94a27a3a918fd09ec9a30204.zip | |
x86, ptrace: Simplify xstateregs_get()
48 bytes (bytes 464..511) of the xstateregs payload come from the
kernel defined structure (xstate_fx_sw_bytes). Rest comes from the
xstate regs structure in the thread struct. Instead of having multiple
user_regset_copyout()'s, simplify the xstateregs_get() by first
copying the SW bytes into the xstate regs structure in the thread structure
and then using one user_regset_copyout() to copyout the xstateregs.
Requested-by: Roland McGrath <[email protected]>
Signed-off-by: Suresh Siddha <[email protected]>
LKML-Reference: <[email protected]>
Acked-by: Roland McGrath <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
