Message ID | 20231010033701.385725-5-gaosong@loongson.cn |
---|---|
State | New |
Headers | show |
Series | linux-user/loongarch64: Add LSX/LASX sigcontext | expand |
On 10/9/23 20:36, Song Gao wrote: > 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> > --- > linux-user/loongarch64/signal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/linux-user/loongarch64/signal.c b/linux-user/loongarch64/signal.c index d97aa7db7f..277e9f5757 100644 --- a/linux-user/loongarch64/signal.c +++ b/linux-user/loongarch64/signal.c @@ -139,7 +139,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)
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> --- linux-user/loongarch64/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)