git: f2caded7f590 - releng/13.0 - amd64: correct size of the SSE area in the xsave layout

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Tue, 11 Jan 2022 18:14:58 UTC
The branch releng/13.0 has been updated by emaste:

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

commit f2caded7f590b8d834892682450d8f9b98e91f21
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-12-12 02:49:50 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-01-10 14:51:54 +0000

    amd64: correct size of the SSE area in the xsave layout
    
    (cherry picked from commit 73b357be92385cbb70ba19e7023a736af2c6b493)
    (cherry picked from commit 1d6ebddb62bc18833b21a15f8e7eb86102140100)
    
    Approved by:    so
    Errata:         FreeBSD-EN-22:02.xsave
---
 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 b9723266ea37..f4fc47eee053 100644
--- a/sys/amd64/amd64/fpu.c
+++ b/sys/amd64/amd64/fpu.c
@@ -482,7 +482,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);