函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Record the offsets and sizes of various xstates contained* in the XSAVE state memory layout.

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

返回类型:void

参数:

250  last_good_offset等于offsetof(structxregs_state, extended_state_area)
257  xstate_offsets[XFEATURE_FP]等于0
258  xstate_sizes[XFEATURE_FP]等于offsetof(structfxregs_state, xmm_space)
261  xstate_offsets[XFEATURE_SSE]等于xstate_sizes[XFEATURE_FP]
262  xstate_sizes[XFEATURE_SSE]等于sizeof_field(TYPE, MEMBER)*@TYPE: The structure containing the field of interest*@MEMBER: The field to return the size of(structfxregs_state, xmm_space)
265 i小于XFEATURE_MAX循环
266  如果非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.则继续下一循环
269  cpuid_count(XSTATE_CPUID, i, & eax, & ebx, & ecx, & edx)
275  如果xfeature_is_user(i)则xstate_offsets[i]等于ebx
278  xstate_sizes[i]等于eax
284  WARN_ONCE(last_good_offset > xstate_offsets[i], "x86/fpu: misordered xstate at %d\n", last_good_offset)
286  last_good_offset等于xstate_offsets[i]
调用者
名称描述
setup_init_fpu_bufsetup the xstate image representing the init state