diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-12-12 02:49:50 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-12-12 18:20:31 +0000 |
commit | 73b357be92385cbb70ba19e7023a736af2c6b493 (patch) | |
tree | 383eb07327e6eb60605c886eebcb95ff4f8ad294 | |
parent | e499988f0cc45ad2e21573b6d11c9cefdd37608d (diff) | |
download | src-73b357be92385cbb70ba19e7023a736af2c6b493.tar.gz src-73b357be92385cbb70ba19e7023a736af2c6b493.zip |
amd64: correct size of the SSE area in the xsave layout
PR: https://github.com/golang/go/issues/46272
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
-rw-r--r-- | sys/amd64/amd64/fpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index 24986958d4ca..daf079b7d2cc 100644 --- a/sys/amd64/amd64/fpu.c +++ b/sys/amd64/amd64/fpu.c @@ -484,7 +484,7 @@ fpuinitstate(void *arg __unused) xsave_area_desc[0].size = 160; /* XMM */ xsave_area_desc[1].offset = 160; - xsave_area_desc[1].size = 288 - 160; + xsave_area_desc[1].size = 416 - 160; for (i = 2; i < max_ext_n; i++) { cpuid_count(0xd, i, cp); |