diff --git a/pkg/ring0/kernel_amd64.go b/pkg/ring0/kernel_amd64.go index e2e9f88c0..0f90d3a2d 100644 --- a/pkg/ring0/kernel_amd64.go +++ b/pkg/ring0/kernel_amd64.go @@ -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) -} diff --git a/pkg/ring0/kernel_arm64.go b/pkg/ring0/kernel_arm64.go index 79f85ff50..889150589 100644 --- a/pkg/ring0/kernel_arm64.go +++ b/pkg/ring0/kernel_arm64.go @@ -90,9 +90,3 @@ func (c *CPU) SwitchToUser(switchOpts SwitchOpts) (vector Vector) { return } - -// RestoreKernelFPState restores the Sentry floating point state. -// -//go:nosplit -func RestoreKernelFPState() { -}