Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:void fpu__init_prepare_fx_sw_frame(void)

Type:void

Parameter:Nothing

464  size = fpu_user_xstate_size + FP_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  If 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) Then
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) = size + fsave_header_size
Caller
NameDescribe
fpu__init_system_xstateEnable and initialize the xsave feature.* Called once per system bootup.