Remove unused ring0.RestoreKernelFPState.

PiperOrigin-RevId: 439933401
This commit is contained in:
Andrei Vagin
2022-04-06 14:20:46 -07:00
committed by gVisor bot
parent 019e0c9301
commit e8ee6e8125
2 changed files with 0 additions and 24 deletions
-18
View File
@@ -338,21 +338,3 @@ func SetCPUIDFaulting(on bool) bool {
func ReadCR2() uintptr {
return readCR2()
}
// kernelMXCSR is the value of the mxcsr register in the Sentry.
//
// The MXCSR control configuration is initialized once and never changed. Look
// at src/cmd/compile/abi-internal.md in the golang sources for more details.
var kernelMXCSR uint32
// RestoreKernelFPState restores the Sentry floating point state.
//
//go:nosplit
func RestoreKernelFPState() {
// Restore the MXCSR control configuration.
ldmxcsr(&kernelMXCSR)
}
func init() {
stmxcsr(&kernelMXCSR)
}
-6
View File
@@ -90,9 +90,3 @@ func (c *CPU) SwitchToUser(switchOpts SwitchOpts) (vector Vector) {
return
}
// RestoreKernelFPState restores the Sentry floating point state.
//
//go:nosplit
func RestoreKernelFPState() {
}