]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] uml: x86_64 ptrace fixes
authorJeff Dike <jdike@addtoit.com>
Sat, 10 Feb 2007 09:44:30 +0000 (01:44 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:24 +0000 (10:51 -0800)
commit85740d21e0482995c8c0d9e414881ad9b2e9d354
treef63c0433740168f56916ece27793e9b69a40e072
parent03257b59edf5fbaf8121884f3fb0f9e4973ee03a
[PATCH] uml: x86_64 ptrace fixes

This patch fixes some missing ptrace bits on x86_64.  PTRACE_ARCH_PRCTL is
hooked up and implemented.  This required generalizing arch_prctl_skas
slightly to take a task_struct to modify.  Previously, it always operated on
current.

Reading and writing the debug registers is also enabled by un-ifdefing the
code that implements that.  It turns out that x86_64 is identical to i386, so
the same code can be used.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/kernel/ptrace.c
arch/um/sys-x86_64/ptrace.c
arch/um/sys-x86_64/syscalls.c
include/asm-um/ptrace-x86_64.h