x86: Export FPU API for KVM use
Also add some constants. Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -107,7 +107,7 @@ void __cpuinit fpu_init(void)
|
||||
}
|
||||
#endif /* CONFIG_X86_64 */
|
||||
|
||||
static void fpu_finit(struct fpu *fpu)
|
||||
void fpu_finit(struct fpu *fpu)
|
||||
{
|
||||
#ifdef CONFIG_X86_32
|
||||
if (!HAVE_HWFP) {
|
||||
@@ -132,6 +132,7 @@ static void fpu_finit(struct fpu *fpu)
|
||||
fp->fos = 0xffff0000u;
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(fpu_finit);
|
||||
|
||||
/*
|
||||
* The _current_ task is using the FPU for the first time
|
||||
|
Reference in New Issue
Block a user