aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSong Gao <gaosong@loongson.cn>2023-11-01 11:08:13 +0800
committerSong Gao <gaosong@loongson.cn>2023-11-03 14:13:26 +0800
commit01714edafd6a89066d827867e4d6671a68c2f546 (patch)
tree5fd5fba6bdcd8c94ebd07291a8619a6af33ea9b9
parent420756c2dd1413cdd06e8c86b4bf80fba08f009f (diff)
linux-user/loongarch64: setup_sigframe() set 'end' context size 0
See: https://github.com/torvalds/linux/blob/master/arch/loongarch/kernel/signal.c The kernel setup_sigcontext() set end context size 0. Signed-off-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231101030816.2353416-4-gaosong@loongson.cn>
-rw-r--r--linux-user/loongarch64/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/loongarch64/signal.c b/linux-user/loongarch64/signal.c
index 6844f187ee..cc8324b4b3 100644
--- a/linux-user/loongarch64/signal.c
+++ b/linux-user/loongarch64/signal.c
@@ -154,7 +154,7 @@ static void setup_sigframe(CPULoongArchState *env,
*/
info = extctx->end.haddr;
__put_user(0, &info->magic);
- __put_user(extctx->end.size, &info->size);
+ __put_user(0, &info->size);
}
static bool parse_extcontext(struct extctx_layout *extctx, abi_ptr frame)