Deleted Added
full compact
33c33
< * $FreeBSD: head/sys/amd64/include/fpu.h 189412 2009-03-05 16:56:16Z jhb $
---
> * $FreeBSD: head/sys/amd64/include/fpu.h 208833 2010-06-05 15:59:59Z kib $
75a76,86
> #ifdef _KERNEL
> struct fpu_kern_ctx {
> struct savefpu hwstate;
> struct savefpu *prev;
> uint32_t flags;
> };
> #define FPU_KERN_CTX_FPUINITDONE 0x01
>
> #define PCB_USER_FPU(pcb) (((pcb)->pcb_flags & PCB_KERNFPU) == 0)
> #endif
>
104a116
> int fpugetuserregs(struct thread *td, struct savefpu *addr);
106a119
> void fpusetuserregs(struct thread *td, struct savefpu *addr);
107a121,131
> int fpu_kern_enter(struct thread *td, struct fpu_kern_ctx *ctx,
> u_int flags);
> int fpu_kern_leave(struct thread *td, struct fpu_kern_ctx *ctx);
> int fpu_kern_thread(u_int flags);
> int is_fpu_kern_thread(u_int flags);
>
> /*
> * Flags for fpu_kern_enter() and fpu_kern_thread().
> */
> #define FPU_KERN_NORMAL 0x0000
>