函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Prepare the SW reserved portion of the fxsave memory layout, indicating* the presence of the extended state information in the memory layout* pointed by the fpstate pointer in the sigcontext

函数原型:void fpu__init_prepare_fx_sw_frame(void)

返回类型:void

参数:

464  size等于fpu_user_xstate_sizeFP_XSTATE_MAGIC2_SIZE
466  If set to FP_XSTATE_MAGIC1 then this is an xstate context.* 0 if a legacy frame.等于FP_XSTATE_MAGIC1
467  Total size of the fpstate area:* - if magic1 == 0 then it's sizeof(struct _fpstate)* - if magic1 == FP_XSTATE_MAGIC1 then it's sizeof(struct _xstate)* plus extensions (if any)等于size
468  Feature bit mask (including FP/SSE/extended state) that is present* in the memory layout:等于xfeatures_mask
469  Actual XSAVE state size, based on the xfeatures saved in the layout.* 'extended_size' is greater than 'xstate_size':等于fpu_user_xstate_size
471  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_IA32_EMULATION)或IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_32)则
473  fsave_header_size等于sizeof(structfregs_state)
475  fx_sw_reserved_ia32等于fx_sw_reserved
476  Total size of the fpstate area:* - if magic1 == 0 then it's sizeof(struct _fpstate)* - if magic1 == FP_XSTATE_MAGIC1 then it's sizeof(struct _xstate)* plus extensions (if any)等于sizefsave_header_size
调用者
名称描述
fpu__init_system_xstateEnable and initialize the xsave feature.* Called once per system bootup.