Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\fpu\xstate.c Create Date:2022-07-28 07:50:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This function sets up offsets and sizes of all extended states in* xsave area. This supports both standard format and compacted format* of the xsave aread.

Proto:static void __init setup_xstate_comp(void)

Type:void

Parameter:Nothing

356  xstate_comp_offsets[XFEATURE_FP] = 0
357  xstate_comp_offsets[XFEATURE_SSE] = offsetof(structfxregs_state, xmm_space)
360  If Not boot_cpu_has(XSAVES/XRSTORS instructions ) Then
361  When i < XFEATURE_MAX cycle
367  Return
370  xstate_comp_offsets[FIRST_EXTENDED_XFEATURE] = FXSAVE_SIZE + XSAVE_HDR_SIZE
373  When i < XFEATURE_MAX cycle
374  If Note that in the future we will likely need a pair of* functions here: one for user xstates and the other for* system xstates. For now, they are the same. Then xstate_comp_sizes[i] = xstate_sizes[i]
376  Else xstate_comp_sizes[i] = 0
379  If i > FIRST_EXTENDED_XFEATURE Then
Caller
NameDescribe
fpu__init_system_xstateEnable and initialize the xsave feature.* Called once per system bootup.