aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libsandbox/trace/linux/hppa.c')
-rw-r--r--libsandbox/trace/linux/hppa.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libsandbox/trace/linux/hppa.c b/libsandbox/trace/linux/hppa.c
index d98310f..b7fab1c 100644
--- a/libsandbox/trace/linux/hppa.c
+++ b/libsandbox/trace/linux/hppa.c
@@ -1,7 +1,4 @@
-static int trace_sysnum(void)
-{
- return do_peekuser(20 * 4); /* PT_GR20 */
-}
+#define trace_sysnum_puser (20 * 4) /* PT_GR20 */
static long trace_raw_ret(void *vregs)
{
@@ -9,6 +6,11 @@ static long trace_raw_ret(void *vregs)
return regs->gr[28];
}
+static void trace_set_ret(void *vregs, int err)
+{
+ do_pokeuser(28 * 4 /* PT_GR28 */, -err);
+}
+
static unsigned long trace_arg(void *vregs, int num)
{
trace_regs *regs = vregs;