diff options
author | 2010-02-22 14:51:33 -0800 | |
---|---|---|
committer | 2010-02-23 13:45:27 -0800 | |
commit | ff7fbc72e0c3ef7e94a27a3a918fd09ec9a30204 (patch) | |
tree | 1e07cfb9d41d8c7c155ae781f901e287f3833273 /mm/hugetlb.c | |
parent | ptrace: Fix ptrace_regset() comments and diagnose errors specifically (diff) | |
download | wireguard-linux-ff7fbc72e0c3ef7e94a27a3a918fd09ec9a30204.tar.xz wireguard-linux-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 <roland@redhat.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
LKML-Reference: <20100222225240.494688491@sbs-t61.sc.intel.com>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions