On 6/20/22 20:56, gaosong wrote:
This is missing lock_user/unlock_user somewhere.
You can't use the double-underscore __get/__put_user without having done that.
My understanding is that the struct exctx need lock_user_struct/unlock_user_struct, then
we can use __get/__put the struct extctx.
Hi Richard
On 2022/6/21 上午12:23, Richard Henderson wrote:
On 6/20/22 02:33, Song Gao wrote:
+static int restore_sigcontext(CPULoongArchState *env,
+ struct target_sigcontext *sc)
+{
+ int i;
+ int ret = 0;
+ struct extctx_layout extctx;
+
+ memset(&extc
On 6/20/22 02:33, Song Gao wrote:
+static int restore_sigcontext(CPULoongArchState *env,
+ struct target_sigcontext *sc)
+{
+int i;
+int ret = 0;
+struct extctx_layout extctx;
+
+memset(&extctx, 0, sizeof(struct extctx_layout));
+
+__get_user(extc
Signed-off-by: Song Gao
Signed-off-by: Xiaojuan Yang
---
linux-user/loongarch64/signal.c| 342 +
linux-user/loongarch64/target_signal.h | 13 +
2 files changed, 355 insertions(+)
create mode 100644 linux-user/loongarch64/signal.c
create mode 100644 linux-user/l