All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] linux-user/riscv: fix up struct target_ucontext definition
@ 2020-04-12  2:08 ` LIU Zhiwei
  0 siblings, 0 replies; 16+ messages in thread
From: LIU Zhiwei @ 2020-04-12  2:08 UTC (permalink / raw)
  To: richard.henderson, alistair23, palmer
  Cc: wenmeng_zhang, qemu-riscv, qemu-devel, wxy194768, LIU Zhiwei

As struct target_ucontext will be transfered to signal handler, it
must keep pace with struct ucontext_t defined in Linux kernel.

Signed-off-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
---
 linux-user/riscv/signal.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/linux-user/riscv/signal.c b/linux-user/riscv/signal.c
index 83ecc6f799..67a95dbc7b 100644
--- a/linux-user/riscv/signal.c
+++ b/linux-user/riscv/signal.c
@@ -40,8 +40,9 @@ struct target_ucontext {
     unsigned long uc_flags;
     struct target_ucontext *uc_link;
     target_stack_t uc_stack;
-    struct target_sigcontext uc_mcontext;
     target_sigset_t uc_sigmask;
+    uint8_t   __unused[1024 / 8 - sizeof(target_sigset_t)];
+    struct target_sigcontext uc_mcontext QEMU_ALIGNED(16);
 };
 
 struct target_rt_sigframe {
-- 
2.23.0



^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-04-23 19:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-12  2:08 [PATCH] linux-user/riscv: fix up struct target_ucontext definition LIU Zhiwei
2020-04-12  2:08 ` LIU Zhiwei
2020-04-22  2:34 ` LIU Zhiwei
2020-04-22  2:34   ` LIU Zhiwei
2020-04-22  4:10   ` Richard Henderson
2020-04-22  4:10     ` Richard Henderson
2020-04-22 18:05     ` Alistair Francis
2020-04-22 18:05       ` Alistair Francis
2020-04-22 19:20       ` Richard Henderson
2020-04-22 19:20         ` Richard Henderson
2020-04-22 21:18         ` Alistair Francis
2020-04-22 21:18           ` Alistair Francis
2020-04-23  1:55     ` LIU Zhiwei
2020-04-23  1:55       ` LIU Zhiwei
2020-04-23 19:45       ` Richard Henderson
2020-04-23 19:45         ` Richard Henderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.