summaryrefslogtreecommitdiffhomepage
path: root/pkg/ring0/kernel.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-10-09 01:07:17 +0000
committergVisor bot <gvisor-bot@google.com>2021-10-09 01:07:17 +0000
commit9cafd368f18ab756221d2007183a46abe9a56a85 (patch)
treec7e103a497fff66c624720dcdba791b63382281c /pkg/ring0/kernel.go
parent0927c63f8ea75dcabf909015e5ed28532b1e8549 (diff)
parent3f1642e4bc86c6e7febc6b2dd2b83ad48c5ee201 (diff)
Merge release-20210927.0-53-g3f1642e4b (automated)
Diffstat (limited to 'pkg/ring0/kernel.go')
-rw-r--r--pkg/ring0/kernel.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/ring0/kernel.go b/pkg/ring0/kernel.go
index 292f9d0cc..e7dd84929 100644
--- a/pkg/ring0/kernel.go
+++ b/pkg/ring0/kernel.go
@@ -14,6 +14,10 @@
package ring0
+import (
+ "gvisor.dev/gvisor/pkg/sentry/arch/fpu"
+)
+
// Init initializes a new kernel.
//
//go:nosplit
@@ -80,6 +84,7 @@ func (c *CPU) Init(k *Kernel, cpuID int, hooks Hooks) {
c.self = c // Set self reference.
c.kernel = k // Set kernel reference.
c.init(cpuID) // Perform architectural init.
+ c.floatingPointState = fpu.NewState()
// Require hooks.
if hooks != nil {