x86: add a comment providing source for numbers in legacy XSAVE area layout

Suggested by:	Michael Pratt <mpratt@google.com>
Reviewed by:	Michael Pratt <mpratt@google.com>, emaste
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D33423
This commit is contained in:
Konstantin Belousov 2021-12-14 01:25:36 +02:00
parent af40f9bfa6
commit 0e6b06d5c8
2 changed files with 6 additions and 2 deletions

View File

@ -472,7 +472,8 @@ fpuinitstate(void *arg __unused)
/*
* Create a table describing the layout of the CPU Extended
* Save Area.
* Save Area. See Intel SDM rev. 075 Vol. 1 13.4.1 "Legacy
* Region of an XSAVE Area" for the source of offsets/sizes.
*/
if (use_xsave) {
xstate_bv = (uint64_t *)((char *)(fpu_initialstate + 1) +

View File

@ -527,7 +527,10 @@ npxinitstate(void *arg __unused)
/*
* Create a table describing the layout of the CPU Extended
* Save Area.
* Save Area. See Intel SDM rev. 075 Vol. 1 13.4.1 "Legacy
* Region of an XSAVE Area" for the source of offsets/sizes.
* Note that 32bit XSAVE does not use %xmm8-%xmm15, see
* 10.5.1.2 and 13.5.2 "SSE State".
*/
if (use_xsave) {
xstate_bv = (uint64_t *)((char *)(npx_initialstate + 1) +