Deleted Added
full compact
33c33
< * $FreeBSD: head/sys/i386/include/npx.h 189418 2009-03-05 18:32:43Z jhb $
---
> * $FreeBSD: head/sys/i386/include/npx.h 208833 2010-06-05 15:59:59Z kib $
145a146,154
> struct fpu_kern_ctx {
> union savefpu hwstate;
> union savefpu *prev;
> uint32_t flags;
> };
> #define FPU_KERN_CTX_NPXINITDONE 0x01
>
> #define PCB_USER_FPU(pcb) (((pcb)->pcb_flags & PCB_KERNNPX) == 0)
>
153a163
> int npxgetuserregs(struct thread *td, union savefpu *addr);
156a167
> void npxsetuserregs(struct thread *td, union savefpu *addr);
157a169,173
> 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);
158a175,179
> /*
> * Flags for fpu_kern_enter() and fpu_kern_thread().
> */
> #define FPU_KERN_NORMAL 0x0000
>