42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
From bc8d0b788c81253e64333bab326da31cb19b9e64 Mon Sep 17 00:00:00 2001
|
|
From: Mark Wielaard <mjw@redhat.com>
|
|
Date: Thu, 21 Feb 2013 14:05:22 +0100
|
|
Subject: [PATCH 2/2] powerpc/aux_syscalls.stp: Define old/deprecated
|
|
PPC_PTRACE_GET/SET[FP]REGS.
|
|
|
|
kernel commit v3.4-rc5-40-gec34a68 removed them.
|
|
|
|
Signed-off-by: Mark Wielaard <mjw@redhat.com>
|
|
---
|
|
tapset/linux/powerpc/aux_syscalls.stp | 14 ++++++++++++++
|
|
1 files changed, 14 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/tapset/linux/powerpc/aux_syscalls.stp b/tapset/linux/powerpc/aux_syscalls.stp
|
|
index 86ac55f..110f9e6 100644
|
|
--- a/tapset/linux/powerpc/aux_syscalls.stp
|
|
+++ b/tapset/linux/powerpc/aux_syscalls.stp
|
|
@@ -49,6 +49,20 @@
|
|
#ifndef PTRACE_SINGLEBLOCK
|
|
# define PTRACE_SINGLEBLOCK 0x100
|
|
#endif
|
|
+
|
|
+/* (old) PTRACE requests with inverted arguments */
|
|
+#ifndef PPC_PTRACE_GETREGS
|
|
+#define PPC_PTRACE_GETREGS 0x99
|
|
+#endif
|
|
+#ifndef PPC_PTRACE_SETREGS
|
|
+#define PPC_PTRACE_SETREGS 0x98
|
|
+#endif
|
|
+#ifndef PPC_PTRACE_GETFPREGS
|
|
+#define PPC_PTRACE_GETFPREGS 0x97
|
|
+#endif
|
|
+#ifndef PPC_PTRACE_SETFPREGS
|
|
+#define PPC_PTRACE_SETFPREGS 0x96
|
|
+#endif
|
|
%}
|
|
function _arch_ptrace_argstr(request, pid, addr, data)
|
|
{
|
|
--
|
|
1.7.7.6
|
|
|