aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-12-12 02:49:50 +0000
committerEd Maste <emaste@FreeBSD.org>2022-01-10 18:04:06 +0000
commit10fd3f883ad99d7ed999144c93940889e683b971 (patch)
tree2b9f0bfcbbb53ce8ea934e194ff127790f1cbd13
parent9fe0b0c23b76254908dd66604c9d2534baa47baf (diff)
downloadsrc-10fd3f883ad99d7ed999144c93940889e683b971.tar.gz
src-10fd3f883ad99d7ed999144c93940889e683b971.zip
amd64: correct size of the SSE area in the xsave layout
(cherry picked from commit 73b357be92385cbb70ba19e7023a736af2c6b493) (cherry picked from commit 7e45b72844768d7fd5c3c4d4e29f4e84b4bc0402) Approved by: so Errata: FreeBSD-EN-22:02.xsave
-rw-r--r--sys/amd64/amd64/fpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c
index 0fefbb512c25..9d9559cf947a 100644
--- a/sys/amd64/amd64/fpu.c
+++ b/sys/amd64/amd64/fpu.c
@@ -412,7 +412,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);