Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/i386/npx.c
| Show First 20 Lines • Show All 521 Lines • ▼ Show 20 Lines | bzero(npx_initialstate->sv_xmm.sv_xmm, | |||||||||
| sizeof(npx_initialstate->sv_xmm.sv_xmm)); | sizeof(npx_initialstate->sv_xmm.sv_xmm)); | |||||||||
| } else | } else | |||||||||
| bzero(npx_initialstate->sv_87.sv_ac, | bzero(npx_initialstate->sv_87.sv_ac, | |||||||||
| sizeof(npx_initialstate->sv_87.sv_ac)); | sizeof(npx_initialstate->sv_87.sv_ac)); | |||||||||
| /* | /* | |||||||||
| * Create a table describing the layout of the CPU Extended | * 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". | ||||||||||
mpratt_google.com: 13.5.2 "SSE State" also states this if you want a closer reference. | ||||||||||
Done Inline Actions
Quote "SSE State" for consistency with the other section title? mpratt_google.com: Quote "SSE State" for consistency with the other section title? | ||||||||||
| */ | */ | |||||||||
| if (use_xsave) { | if (use_xsave) { | |||||||||
| xstate_bv = (uint64_t *)((char *)(npx_initialstate + 1) + | xstate_bv = (uint64_t *)((char *)(npx_initialstate + 1) + | |||||||||
| offsetof(struct xstate_hdr, xstate_bv)); | offsetof(struct xstate_hdr, xstate_bv)); | |||||||||
| *xstate_bv = XFEATURE_ENABLED_X87 | XFEATURE_ENABLED_SSE; | *xstate_bv = XFEATURE_ENABLED_X87 | XFEATURE_ENABLED_SSE; | |||||||||
| /* x87 state */ | /* x87 state */ | |||||||||
| xsave_area_desc[0].offset = 0; | xsave_area_desc[0].offset = 0; | |||||||||
| ▲ Show 20 Lines • Show All 1,028 Lines • Show Last 20 Lines | ||||||||||
13.5.2 "SSE State" also states this if you want a closer reference.