函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\fpu\xstate.c Create Date:2022-07-27 08:50:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static void __init setup_xstate_comp(void)

返回类型:void

参数:

356  xstate_comp_offsets[XFEATURE_FP]等于0
357  xstate_comp_offsets[XFEATURE_SSE]等于offsetof(structfxregs_state, xmm_space)
360  如果非boot_cpu_has(XSAVES/XRSTORS instructions )则
361 i小于XFEATURE_MAX循环
367  返回
370  xstate_comp_offsets[FIRST_EXTENDED_XFEATURE]等于FXSAVE_SIZEXSAVE_HDR_SIZE
373 i小于XFEATURE_MAX循环
374  如果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.xstate_comp_sizes[i]等于xstate_sizes[i]
376  否则xstate_comp_sizes[i]等于0
379  如果i大于FIRST_EXTENDED_XFEATURE
调用者
名称描述
fpu__init_system_xstateEnable and initialize the xsave feature.* Called once per system bootup.