summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-07-18 15:43:47 +0000
committerkib <kib@FreeBSD.org>2012-07-18 15:43:47 +0000
commite69c4af4ad8ad6392232cc111d173f2fc90675db (patch)
treed2ea444e80055e81d81b455db889c8d1ef30cd3f /sys/amd64/include
parentabd7bc06658ed47567df631305cb546bce51ec5a (diff)
downloadFreeBSD-src-e69c4af4ad8ad6392232cc111d173f2fc90675db.zip
FreeBSD-src-e69c4af4ad8ad6392232cc111d173f2fc90675db.tar.gz
On AMD64, provide siginfo.si_code for floating point errors when error
occurs using the SSE math processor. Update comments describing the handling of the exception status bits in coprocessors control words. Remove GET_FPU_CW and GET_FPU_SW macros which were used only once. Prefer to use curpcb to access pcb_save over the longer path of referencing pcb through the thread structure. Based on the submission by: Ed Alley <wea llnl gov> PR: amd64/169927 Reviewed by: bde MFC after: 3 weeks
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/fpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/include/fpu.h b/sys/amd64/include/fpu.h
index 98a016b..7d0f0ea 100644
--- a/sys/amd64/include/fpu.h
+++ b/sys/amd64/include/fpu.h
@@ -62,7 +62,8 @@ int fpusetregs(struct thread *td, struct savefpu *addr,
char *xfpustate, size_t xfpustate_size);
int fpusetxstate(struct thread *td, char *xfpustate,
size_t xfpustate_size);
-int fputrap(void);
+int fputrap_sse(void);
+int fputrap_x87(void);
void fpuuserinited(struct thread *td);
struct fpu_kern_ctx *fpu_kern_alloc_ctx(u_int flags);
void fpu_kern_free_ctx(struct fpu_kern_ctx *ctx);
OpenPOWER on IntegriCloud