Home | History | Annotate | Line # | Download | only in include
fpu.h revision 1.6.4.2
      1  1.6.4.2  rmind /*	$NetBSD: fpu.h,v 1.6.4.2 2014/05/18 17:45:30 rmind Exp $	*/
      2  1.6.4.2  rmind 
      3  1.6.4.2  rmind #ifndef	_X86_FPU_H_
      4  1.6.4.2  rmind #define	_X86_FPU_H_
      5  1.6.4.2  rmind 
      6  1.6.4.2  rmind #include <x86/cpu_extended_state.h>
      7  1.6.4.2  rmind 
      8  1.6.4.2  rmind #ifdef _KERNEL
      9  1.6.4.2  rmind 
     10  1.6.4.2  rmind struct cpu_info;
     11  1.6.4.2  rmind struct lwp;
     12  1.6.4.2  rmind struct trapframe;
     13  1.6.4.2  rmind 
     14  1.6.4.2  rmind void fpuinit(struct cpu_info *);
     15  1.6.4.2  rmind void fpusave_lwp(struct lwp *, bool);
     16  1.6.4.2  rmind void fpusave_cpu(bool);
     17  1.6.4.2  rmind 
     18  1.6.4.2  rmind void fpu_set_default_cw(struct lwp *, unsigned int);
     19  1.6.4.2  rmind 
     20  1.6.4.2  rmind void fputrap(struct trapframe *);
     21  1.6.4.2  rmind void fpudna(struct trapframe *);
     22  1.6.4.2  rmind 
     23  1.6.4.2  rmind void process_xmm_to_s87(const struct fxsave *, struct save87 *);
     24  1.6.4.2  rmind void process_s87_to_xmm(const struct save87 *, struct fxsave *);
     25  1.6.4.2  rmind 
     26  1.6.4.2  rmind /* Set all to defaults (eg during exec) */
     27  1.6.4.2  rmind void fpu_save_area_clear(struct lwp *, unsigned int);
     28  1.6.4.2  rmind /* Reset control words only - for signal handlers */
     29  1.6.4.2  rmind void fpu_save_area_reset(struct lwp *);
     30  1.6.4.2  rmind 
     31  1.6.4.2  rmind /* Copy data outside pcb during fork */
     32  1.6.4.2  rmind void fpu_save_area_fork(struct pcb *, const struct pcb *);
     33  1.6.4.2  rmind 
     34  1.6.4.2  rmind /* Load FP registers with user-supplied values */
     35  1.6.4.2  rmind void process_write_fpregs_xmm(struct lwp *lwp, const struct fxsave *fpregs);
     36  1.6.4.2  rmind void process_write_fpregs_s87(struct lwp *lwp, const struct save87 *fpregs);
     37  1.6.4.2  rmind 
     38  1.6.4.2  rmind /* Save FP registers for copy to userspace */
     39  1.6.4.2  rmind void process_read_fpregs_xmm(struct lwp *lwp, struct fxsave *fpregs);
     40  1.6.4.2  rmind void process_read_fpregs_s87(struct lwp *lwp, struct save87 *fpregs);
     41  1.6.4.2  rmind 
     42  1.6.4.2  rmind #endif
     43  1.6.4.2  rmind 
     44  1.6.4.2  rmind #endif /* _X86_FPU_H_ */
     45