git: 7e45b7284476 - stable/12 - amd64: correct size of the SSE area in the xsave layout

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Wed, 15 Dec 2021 01:56:55 UTC
The branch stable/12 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=7e45b72844768d7fd5c3c4d4e29f4e84b4bc0402

commit 7e45b72844768d7fd5c3c4d4e29f4e84b4bc0402
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-12-12 02:49:50 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-15 01:56:10 +0000

    amd64: correct size of the SSE area in the xsave layout
    
    (cherry picked from commit 73b357be92385cbb70ba19e7023a736af2c6b493)
---
 sys/amd64/amd64/fpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c
index 1045f691f440..d17241bf2523 100644
--- a/sys/amd64/amd64/fpu.c
+++ b/sys/amd64/amd64/fpu.c
@@ -480,7 +480,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);