summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-09-05 20:47:27 +0000
committerpeter <peter@FreeBSD.org>2003-09-05 20:47:27 +0000
commit35682ec271974c36e8f71518d1a2f8bcefac2460 (patch)
tree9dbe172ef3d571c898aab2fc6587451d95a5c3bf
parent3cec797a7b3a9ef957f2e2dc7c2f24b3d388e9b7 (diff)
downloadFreeBSD-src-35682ec271974c36e8f71518d1a2f8bcefac2460.zip
FreeBSD-src-35682ec271974c36e8f71518d1a2f8bcefac2460.tar.gz
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.
-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 ca88c0a..bcb1911 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;
OpenPOWER on IntegriCloud