From 7332e364d06ab7e85340b2c6effe977856ab1815 Mon Sep 17 00:00:00 2001 From: deischen Date: Tue, 16 Sep 2003 00:00:53 +0000 Subject: 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. --- lib/libkse/arch/amd64/amd64/context.S | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib/libkse') 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 -- cgit v1.1