函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Set up the user and kernel xstate sizes based on the legacy FPU context size.* We set this up first, and later it will be overwritten by* fpu__init_system_xstate() if the CPU knows about xstates.

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

返回类型:void

参数:

196  on_boot_cpu((__section__(".init.data")))等于1
198  WARN_ON_FPU(!on_boot_cpu)
199  on_boot_cpu等于0
206  如果非boot_cpu_has(Onboard FPU )则
207  Size of the FPU context state. All tasks in the system use the* same context size, regardless of what portion they use.* This is inherent to the XSAVE architecture which puts all state* components into a single, continuous memory block:等于sizeof(structswregs_state)
208  否则
209  如果boot_cpu_has(FXSAVE/FXRSTOR, CR4.OSFXSR )则Size of the FPU context state. All tasks in the system use the* same context size, regardless of what portion they use.* This is inherent to the XSAVE architecture which puts all state* components into a single, continuous memory block:等于sizeof(structfxregs_state)
212  否则Size of the FPU context state. All tasks in the system use the* same context size, regardless of what portion they use.* This is inherent to the XSAVE architecture which puts all state* components into a single, continuous memory block:等于sizeof(structfregs_state)
217  fpu_user_xstate_size等于Size of the FPU context state. All tasks in the system use the* same context size, regardless of what portion they use.* This is inherent to the XSAVE architecture which puts all state* components into a single, continuous memory block:
调用者
名称描述
fpu__init_systemCalled on the boot CPU once per system bootup, to set up the initial* FPU state that is later cloned into all processes: