fpu.h (233044) | fpu.h (238598) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * from: @(#)npx.h 5.3 (Berkeley) 1/18/91 | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * from: @(#)npx.h 5.3 (Berkeley) 1/18/91 |
33 * $FreeBSD: head/sys/amd64/include/fpu.h 233044 2012-03-16 20:24:30Z tijl $ | 33 * $FreeBSD: head/sys/amd64/include/fpu.h 238598 2012-07-18 15:43:47Z kib $ |
34 */ 35 36/* 37 * Floating Point Data Structures and Constants 38 * W. Jolitz 1/90 39 */ 40 41#ifndef _MACHINE_FPU_H_ --- 15 unchanged lines hidden (view full) --- 57int fpuformat(void); 58int fpugetregs(struct thread *td); 59void fpuinit(void); 60void fpusave(void *addr); 61int fpusetregs(struct thread *td, struct savefpu *addr, 62 char *xfpustate, size_t xfpustate_size); 63int fpusetxstate(struct thread *td, char *xfpustate, 64 size_t xfpustate_size); | 34 */ 35 36/* 37 * Floating Point Data Structures and Constants 38 * W. Jolitz 1/90 39 */ 40 41#ifndef _MACHINE_FPU_H_ --- 15 unchanged lines hidden (view full) --- 57int fpuformat(void); 58int fpugetregs(struct thread *td); 59void fpuinit(void); 60void fpusave(void *addr); 61int fpusetregs(struct thread *td, struct savefpu *addr, 62 char *xfpustate, size_t xfpustate_size); 63int fpusetxstate(struct thread *td, char *xfpustate, 64 size_t xfpustate_size); |
65int fputrap(void); | 65int fputrap_sse(void); 66int fputrap_x87(void); |
66void fpuuserinited(struct thread *td); 67struct fpu_kern_ctx *fpu_kern_alloc_ctx(u_int flags); 68void fpu_kern_free_ctx(struct fpu_kern_ctx *ctx); 69int fpu_kern_enter(struct thread *td, struct fpu_kern_ctx *ctx, 70 u_int flags); 71int fpu_kern_leave(struct thread *td, struct fpu_kern_ctx *ctx); 72int fpu_kern_thread(u_int flags); 73int is_fpu_kern_thread(u_int flags); 74 75/* 76 * Flags for fpu_kern_alloc_ctx(), fpu_kern_enter() and fpu_kern_thread(). 77 */ 78#define FPU_KERN_NORMAL 0x0000 79#define FPU_KERN_NOWAIT 0x0001 80 81#endif 82 83#endif /* !_MACHINE_FPU_H_ */ | 67void fpuuserinited(struct thread *td); 68struct fpu_kern_ctx *fpu_kern_alloc_ctx(u_int flags); 69void fpu_kern_free_ctx(struct fpu_kern_ctx *ctx); 70int fpu_kern_enter(struct thread *td, struct fpu_kern_ctx *ctx, 71 u_int flags); 72int fpu_kern_leave(struct thread *td, struct fpu_kern_ctx *ctx); 73int fpu_kern_thread(u_int flags); 74int is_fpu_kern_thread(u_int flags); 75 76/* 77 * Flags for fpu_kern_alloc_ctx(), fpu_kern_enter() and fpu_kern_thread(). 78 */ 79#define FPU_KERN_NORMAL 0x0000 80#define FPU_KERN_NOWAIT 0x0001 81 82#endif 83 84#endif /* !_MACHINE_FPU_H_ */ |