diff options
author | Vitaliy Gusev <gusev.vitaliy@gmail.com> | 2020-07-20 13:58:21 -0700 |
---|---|---|
committer | Joshua M. Clulow <josh@sysmgr.org> | 2020-07-21 10:44:14 -0700 |
commit | 6a8fa7ea16d9870b21c82af67a2053cb47ed1fb4 (patch) | |
tree | 96408da85939e462d75f0600ddc5e88db0d33c21 /usr/src/lib/libc/amd64/gen/siglongjmp.c | |
parent | 9b65801e8bd9a9007efed89ac479e99b9dab83d1 (diff) | |
download | illumos-gate-6a8fa7ea16d9870b21c82af67a2053cb47ed1fb4.tar.gz |
12747 sigsetjmp should allow for 8 byte aligned buffer on amd64
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Approved by: Joshua M. Clulow <josh@sysmgr.org>
Diffstat (limited to 'usr/src/lib/libc/amd64/gen/siglongjmp.c')
-rw-r--r-- | usr/src/lib/libc/amd64/gen/siglongjmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <sys/ucontext.h> #include <setjmp.h> #include <ucontext.h> +#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; |