fpu.h revision 1.2
1/*	$NetBSD: fpu.h,v 1.2 2014/02/12 23:24:09 dsl Exp $	*/
2
3#ifndef	_X86_FPU_H_
4#define	_X86_FPU_H_
5
6#include <x86/cpu_extended_state.h>
7
8#ifdef _KERNEL
9
10struct trapframe;
11struct cpu_info;
12
13void fpuinit(struct cpu_info *);
14void fpusave_lwp(struct lwp *, bool);
15void fpusave_cpu(bool);
16
17void fputrap(struct trapframe *);
18void fpudna(struct trapframe *);
19
20void process_xmm_to_s87(const struct fxsave *, struct save87 *);
21void process_s87_to_xmm(const struct save87 *, struct fxsave *);
22
23#endif
24
25#endif /* _X86_FPU_H_ */
26