]> sourceware.org Git - newlib-cygwin.git/commit
Try to make sure struct _mcontext is 16-byte aligned
authorJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 2 Apr 2015 17:05:32 +0000 (18:05 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 2 Apr 2015 17:05:32 +0000 (18:05 +0100)
commitcbb9849fa76f1dbe6c66d91b68d9a10f46f1ba69
tree9398d95ff2daf22a3f77518a4b1d39cec1499afd
parent94bb7da6b4a7b8400ede75e000c9df1f15588b22
Try to make sure struct _mcontext is 16-byte aligned

On x86_64, RtlCaptureContext() uses fxsave to save FPU/MMX/SSE state.

fxsave requires that the destination address is 16-byte aligned, or it will
fault.

CONTEXT is already annotated __attribute__ ((aligned (16))), do the same with
struct _mcontext.

Rearrange ucontext_t so that it's struct _mcontext element is also correctly
aligned.

* include/cygwin/signal.h (struct __mcontext): 16-byte align.
* include/sys/ucontext.h (ucontext_t): Ditto.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
winsup/cygwin/ChangeLog
winsup/cygwin/include/cygwin/signal.h
winsup/cygwin/include/sys/ucontext.h
This page took 0.031798 seconds and 5 git commands to generate.