summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-04-04 16:54:40 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-04-09 22:56:41 -0700
commit731bbe431f7dbbcbdc5293cfb187a916c375e83b (patch)
tree6b4509828caff1cbed7526dcb514146d149e6056 /arch
parent1608a96e7998bffd10fcb2440e8175cfb703fd95 (diff)
downloadop-kernel-dev-731bbe431f7dbbcbdc5293cfb187a916c375e83b.zip
op-kernel-dev-731bbe431f7dbbcbdc5293cfb187a916c375e83b.tar.gz
[SPARC64]: Translate PTRACE_GETEVENTMSG for 32-bit tasks.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc64/kernel/ptrace.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c
index c910af5..49e6ded 100644
--- a/arch/sparc64/kernel/ptrace.c
+++ b/arch/sparc64/kernel/ptrace.c
@@ -609,6 +609,22 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
/* PTRACE_DUMPCORE unsupported... */
+ case PTRACE_GETEVENTMSG: {
+ int err;
+
+ if (test_thread_flag(TIF_32BIT))
+ err = put_user(child->ptrace_message,
+ (unsigned int __user *) data);
+ else
+ err = put_user(child->ptrace_message,
+ (unsigned long __user *) data);
+ if (err)
+ pt_error_return(regs, -err);
+ else
+ pt_succ_return(regs, 0);
+ break;
+ }
+
default: {
int err = ptrace_request(child, request, addr, data);
if (err)
OpenPOWER on IntegriCloud