summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2003-09-16 00:00:53 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2003-09-16 00:00:53 +0000
commita87a12715cd278f5968e823bbcb657b65ced6bbc (patch)
treec533a3409ddb35b0f333bad3d69765166d29fbc7
parent2b9de089a78f63a00ed886735324a70491e05e1c (diff)
Notes
-rw-r--r--lib/libkse/arch/amd64/amd64/context.S11
-rw-r--r--lib/libpthread/arch/amd64/amd64/context.S11
2 files changed, 2 insertions, 20 deletions
diff --git a/lib/libkse/arch/amd64/amd64/context.S b/lib/libkse/arch/amd64/amd64/context.S
index 5b8fc74f1b64..684191f7b0f7 100644
--- a/lib/libkse/arch/amd64/amd64/context.S
+++ b/lib/libkse/arch/amd64/amd64/context.S
@@ -72,22 +72,13 @@ __FBSDID("$FreeBSD$");
* translations from i386 but with the register names updated, etc.
* The main gotcha is that FPU save/restore is in SSE format, which
* means a sparse 512 byte FPU context.
- *
- * Note that the FPU is suppose to be 512 bytes but that the
- * definition for the FPU bits in struct mcontext does not
- * agree:
- *
- * long mc_fpstate[128] __aligned(16);
- *
- * This would actually use 1024 bytes, not 512, since long is
- * 8 bytes on amd64.
*/
/*
* Where do we define these?
*/
-#define MC_SIZE 1312 /* sizeof mcontext_t */
+#define MC_SIZE 800 /* sizeof mcontext_t */
#define MC_LEN_OFFSET (24*8) /* offset to mc_len from mcontext */
#define MC_FPFMT_OFFSET (25*8) /* offset to mc_fpformat from mcontext */
#define MC_FPFMT_NODEV 0x10000
diff --git a/lib/libpthread/arch/amd64/amd64/context.S b/lib/libpthread/arch/amd64/amd64/context.S
index 5b8fc74f1b64..684191f7b0f7 100644
--- a/lib/libpthread/arch/amd64/amd64/context.S
+++ b/lib/libpthread/arch/amd64/amd64/context.S
@@ -72,22 +72,13 @@ __FBSDID("$FreeBSD$");
* translations from i386 but with the register names updated, etc.
* The main gotcha is that FPU save/restore is in SSE format, which
* means a sparse 512 byte FPU context.
- *
- * Note that the FPU is suppose to be 512 bytes but that the
- * definition for the FPU bits in struct mcontext does not
- * agree:
- *
- * long mc_fpstate[128] __aligned(16);
- *
- * This would actually use 1024 bytes, not 512, since long is
- * 8 bytes on amd64.
*/
/*
* Where do we define these?
*/
-#define MC_SIZE 1312 /* sizeof mcontext_t */
+#define MC_SIZE 800 /* sizeof mcontext_t */
#define MC_LEN_OFFSET (24*8) /* offset to mc_len from mcontext */
#define MC_FPFMT_OFFSET (25*8) /* offset to mc_fpformat from mcontext */
#define MC_FPFMT_NODEV 0x10000