summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/fpu.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-03-05 16:56:16 +0000
committerjhb <jhb@FreeBSD.org>2009-03-05 16:56:16 +0000
commit059d33034711cd836d72958de8f1d7a5654d067f (patch)
treeeb0c61351211605f31be2d4ab4e7160345e897cb /sys/amd64/include/fpu.h
parent0f16fc12d50334c0ec1c559860a07fd2c8747e0f (diff)
downloadFreeBSD-src-059d33034711cd836d72958de8f1d7a5654d067f.zip
FreeBSD-src-059d33034711cd836d72958de8f1d7a5654d067f.tar.gz
A few cleanups to the FPU code on amd64:
- fpudna() always returned 1 since amd64 CPUs always have FPUs. Change the function to return void and adjust the calling code in trap() to assume the return 1 case is the only case. - Remove fpu_cleanstate_ready as it is always true when it is tested. Also, only initialize fpu_cleanstate when fpuinit() is called on the BSP. Reviewed by: bde
Diffstat (limited to 'sys/amd64/include/fpu.h')
-rw-r--r--sys/amd64/include/fpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/fpu.h b/sys/amd64/include/fpu.h
index 9b99fd8..272f94a 100644
--- a/sys/amd64/include/fpu.h
+++ b/sys/amd64/include/fpu.h
@@ -97,7 +97,7 @@ struct savefpu {
#define __INITIAL_MXCSR_MASK__ 0xFFBF
#ifdef _KERNEL
-int fpudna(void);
+void fpudna(void);
void fpudrop(void);
void fpuexit(struct thread *td);
int fpuformat(void);
OpenPOWER on IntegriCloud