From 6a8fa7ea16d9870b21c82af67a2053cb47ed1fb4 Mon Sep 17 00:00:00 2001 From: Vitaliy Gusev Date: Mon, 20 Jul 2020 13:58:21 -0700 Subject: 12747 sigsetjmp should allow for 8 byte aligned buffer on amd64 Reviewed by: Robert Mustacchi Reviewed by: Joshua M. Clulow Approved by: Joshua M. Clulow --- usr/src/lib/libc/amd64/gen/siglongjmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/lib/libc/amd64/gen/siglongjmp.c') diff --git a/usr/src/lib/libc/amd64/gen/siglongjmp.c b/usr/src/lib/libc/amd64/gen/siglongjmp.c index d71f40a034..dda4c945d6 100644 --- a/usr/src/lib/libc/amd64/gen/siglongjmp.c +++ b/usr/src/lib/libc/amd64/gen/siglongjmp.c @@ -29,6 +29,7 @@ #include #include #include +#include "sigjmp_struct.h" #include "libc.h" #pragma weak _siglongjmp = siglongjmp @@ -36,8 +37,7 @@ void siglongjmp(sigjmp_buf env, int val) { - /* LINTED alignment */ - ucontext_t *ucp = (ucontext_t *)env; + ucontext_t *ucp = SIGJMP2UCONTEXT(env); if (val) ucp->uc_mcontext.gregs[REG_R0] = val; -- cgit v1.2.3