aboutsummaryrefslogtreecommitdiff
path: root/linux-user/s390x/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/s390x/signal.c')
-rw-r--r--linux-user/s390x/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/s390x/signal.c b/linux-user/s390x/signal.c
index dcc6f7bc02..f8515dd332 100644
--- a/linux-user/s390x/signal.c
+++ b/linux-user/s390x/signal.c
@@ -142,7 +142,7 @@ void setup_frame(int sig, struct target_sigaction *ka,
save_sigregs(env, &frame->sregs);
- __put_user((abi_ulong)(unsigned long)&frame->sregs, &frame->sc.sregs);
+ __put_user(frame_addr + offsetof(sigframe, sregs), &frame->sc.sregs);
/* Set up to return from userspace. If provided, use a stub
already in userspace. */