aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/ucontext.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2003-09-05 20:47:27 +0000
committerPeter Wemm <peter@FreeBSD.org>2003-09-05 20:47:27 +0000
commitc896a8adbfaf8dd41ae93dec93f4b2d831abe5ac (patch)
tree9dbe172ef3d571c898aab2fc6587451d95a5c3bf /sys/amd64/include/ucontext.h
parent48b9d042a80560b4cf5a632ca7bd5398b6c79805 (diff)
downloadsrc-c896a8adbfaf8dd41ae93dec93f4b2d831abe5ac.tar.gz
src-c896a8adbfaf8dd41ae93dec93f4b2d831abe5ac.zip
Oops. sizeof(long) = 8, not 4. Get the fxsave buffer inside mcontext
the right size. I'm planning on *possibly* stealing the two 'spare' variables on either side for botched alignment correction.
Notes
Notes: svn path=/head/; revision=119779
Diffstat (limited to 'sys/amd64/include/ucontext.h')
-rw-r--r--sys/amd64/include/ucontext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/ucontext.h b/sys/amd64/include/ucontext.h
index ca88c0a4a9c4..bcb19119b231 100644
--- a/sys/amd64/include/ucontext.h
+++ b/sys/amd64/include/ucontext.h
@@ -70,11 +70,11 @@ typedef struct __mcontext {
#define _MC_FPOWNED_FPU 0x20001 /* FP state came from FPU */
#define _MC_FPOWNED_PCB 0x20002 /* FP state came from PCB */
long mc_ownedfp;
- long mc_spare1[1]; /* align next field to 16 bytes */
+ long mc_spare1[1]; /* align mc_fpstate to 16 bytes */
/*
* See <machine/npx.h> for the internals of mc_fpstate[].
*/
- long mc_fpstate[128] __aligned(16);
+ long mc_fpstate[64] __aligned(16);
long mc_spare2[8];
} mcontext_t;