summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel/ia32/ml/float.s
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2020-04-01 14:58:25 +0100
committerGitHub <noreply@github.com>2020-04-01 14:58:25 +0100
commita4a43b983024104a82e95c2647b94f767d62a8eb (patch)
tree57ccba9faa7b25da0ab082799ac1d41fe9447caa /usr/src/uts/intel/ia32/ml/float.s
parent280f87530631a519eb45e763050d2e0b3e55d499 (diff)
parentf559d4b8282f7f6a9c3e1546000352c62e12481a (diff)
downloadillumos-joyent-OS-8148.tar.gz
Merge branch 'master' into OS-8148OS-8148
Diffstat (limited to 'usr/src/uts/intel/ia32/ml/float.s')
-rw-r--r--usr/src/uts/intel/ia32/ml/float.s162
1 files changed, 0 insertions, 162 deletions
diff --git a/usr/src/uts/intel/ia32/ml/float.s b/usr/src/uts/intel/ia32/ml/float.s
index 0a242e0475..b3c4643707 100644
--- a/usr/src/uts/intel/ia32/ml/float.s
+++ b/usr/src/uts/intel/ia32/ml/float.s
@@ -42,20 +42,7 @@
#include <sys/privregs.h>
#include <sys/x86_archext.h>
-#if defined(__lint)
-#include <sys/types.h>
-#include <sys/fp.h>
-#else
#include "assym.h"
-#endif
-
-#if defined(__lint)
-
-uint_t
-fpu_initial_probe(void)
-{ return (0); }
-
-#else /* __lint */
/*
* Returns zero if x87 "chip" is present(!)
@@ -68,48 +55,16 @@ fpu_initial_probe(void)
ret
SET_SIZE(fpu_initial_probe)
-#endif /* __lint */
-
-#if defined(__lint)
-
-/*ARGSUSED*/
-void
-fxsave_insn(struct fxsave_state *fx)
-{}
-
-#else /* __lint */
-
ENTRY_NP(fxsave_insn)
fxsaveq (%rdi)
ret
SET_SIZE(fxsave_insn)
-#endif /* __lint */
-
/*
* One of these routines is called from any lwp with floating
* point context as part of the prolog of a context switch.
*/
-#if defined(__lint)
-
-/*ARGSUSED*/
-void
-xsave_ctxt(void *arg)
-{}
-
-/*ARGSUSED*/
-void
-xsaveopt_ctxt(void *arg)
-{}
-
-/*ARGSUSED*/
-void
-fpxsave_ctxt(void *arg)
-{}
-
-#else /* __lint */
-
/*
* These three functions define the Intel "xsave" handling for CPUs with
* different features. Newer AMD CPUs can also use these functions. See the
@@ -224,32 +179,6 @@ fpxsave_ctxt(void *arg)
.4byte 0x0
.4byte 0x0
-#endif /* __lint */
-
-
-#if defined(__lint)
-
-/*ARGSUSED*/
-void
-fpsave(struct fnsave_state *f)
-{}
-
-/*ARGSUSED*/
-void
-fpxsave(struct fxsave_state *f)
-{}
-
-/*ARGSUSED*/
-void
-xsave(struct xsave_state *f, uint64_t m)
-{}
-
-/*ARGSUSED*/
-void
-xsaveopt(struct xsave_state *f, uint64_t m)
-{}
-
-#else /* __lint */
ENTRY_NP(fpxsave)
CLTS
@@ -283,27 +212,11 @@ xsaveopt(struct xsave_state *f, uint64_t m)
ret
SET_SIZE(xsaveopt)
-#endif /* __lint */
-
/*
* These functions are used when restoring the FPU as part of the epilogue of a
* context switch.
*/
-#if defined(__lint)
-
-/*ARGSUSED*/
-void
-fpxrestore_ctxt(void *arg)
-{}
-
-/*ARGSUSED*/
-void
-xrestore_ctxt(void *arg)
-{}
-
-#else /* __lint */
-
ENTRY(fpxrestore_ctxt)
cmpl $_CONST(FPU_EN|FPU_VALID), FPU_CTX_FPU_FLAGS(%rdi)
jne 1f
@@ -328,22 +241,6 @@ xrestore_ctxt(void *arg)
ret
SET_SIZE(xrestore_ctxt)
-#endif /* __lint */
-
-
-#if defined(__lint)
-
-/*ARGSUSED*/
-void
-fpxrestore(struct fxsave_state *f)
-{}
-
-/*ARGSUSED*/
-void
-xrestore(struct xsave_state *f, uint64_t m)
-{}
-
-#else /* __lint */
ENTRY_NP(fpxrestore)
CLTS
@@ -360,39 +257,19 @@ xrestore(struct xsave_state *f, uint64_t m)
ret
SET_SIZE(xrestore)
-#endif /* __lint */
-
/*
* Disable the floating point unit.
*/
-#if defined(__lint)
-
-void
-fpdisable(void)
-{}
-
-#else /* __lint */
-
ENTRY_NP(fpdisable)
STTS(%rdi) /* set TS bit in %cr0 (disable FPU) */
ret
SET_SIZE(fpdisable)
-#endif /* __lint */
-
/*
* Initialize the fpu hardware.
*/
-#if defined(__lint)
-
-void
-fpinit(void)
-{}
-
-#else /* __lint */
-
ENTRY_NP(fpinit)
CLTS
cmpl $FP_XSAVE, fp_save_mech
@@ -414,25 +291,11 @@ fpinit(void)
ret
SET_SIZE(fpinit)
-#endif /* __lint */
-
/*
* Clears FPU exception state.
* Returns the FP status word.
*/
-#if defined(__lint)
-
-uint32_t
-fperr_reset(void)
-{ return (0); }
-
-uint32_t
-fpxerr_reset(void)
-{ return (0); }
-
-#else /* __lint */
-
ENTRY_NP(fperr_reset)
CLTS
xorl %eax, %eax
@@ -454,18 +317,6 @@ fpxerr_reset(void)
ret
SET_SIZE(fpxerr_reset)
-#endif /* __lint */
-
-#if defined(__lint)
-
-uint32_t
-fpgetcwsw(void)
-{
- return (0);
-}
-
-#else /* __lint */
-
ENTRY_NP(fpgetcwsw)
pushq %rbp
movq %rsp, %rbp
@@ -478,22 +329,10 @@ fpgetcwsw(void)
ret
SET_SIZE(fpgetcwsw)
-#endif /* __lint */
-
/*
* Returns the MXCSR register.
*/
-#if defined(__lint)
-
-uint32_t
-fpgetmxcsr(void)
-{
- return (0);
-}
-
-#else /* __lint */
-
ENTRY_NP(fpgetmxcsr)
pushq %rbp
movq %rsp, %rbp
@@ -505,4 +344,3 @@ fpgetmxcsr(void)
ret
SET_SIZE(fpgetmxcsr)
-#endif /* __lint */