summaryrefslogtreecommitdiffstats
path: root/lib/libkse
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-09-16 00:00:53 +0000
committerdeischen <deischen@FreeBSD.org>2003-09-16 00:00:53 +0000
commit7332e364d06ab7e85340b2c6effe977856ab1815 (patch)
treec533a3409ddb35b0f333bad3d69765166d29fbc7 /lib/libkse
parentd41e114b7c3c0b87596120ca5d836779f05f428e (diff)
downloadFreeBSD-src-7332e364d06ab7e85340b2c6effe977856ab1815.zip
FreeBSD-src-7332e364d06ab7e85340b2c6effe977856ab1815.tar.gz
Remove a comment that questioned why the size of the FPU
state for amd64 was twice as large as necessary. Peter recently fixed this, so the comment no longer applies. Also, since the size of struct mcontext changed, adjust the threads library version of get&set context to match. FYI, any change layout/size change to any arch's struct mcontext will likely need some minor changes in libpthread.
Diffstat (limited to 'lib/libkse')
-rw-r--r--lib/libkse/arch/amd64/amd64/context.S11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/libkse/arch/amd64/amd64/context.S b/lib/libkse/arch/amd64/amd64/context.S
index 5b8fc74..684191f 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
OpenPOWER on IntegriCloud