函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Called on the boot CPU once per system bootup, to set up the initial* FPU state that is later cloned into all processes:

函数原型:void __init fpu__init_system(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
284  We parse fpu parameters early because fpu__init_system() is executed* before parse_early_param().
285  fpu__init_system_early_generic(c)
291  Enable all supported FPU features. Called when a CPU is brought online:
293  Once per bootup FPU initialization sequences that will run on most x86 CPUs:
294  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.
295  Enable and initialize the xsave feature.* Called once per system bootup.
296  We append the 'struct fpu' to the task_struct:
298  Legacy code to initialize eager fpu mode.
调用者
名称描述
early_identify_cpuDo minimum CPU detection early.* Fields really needed: vendor, cpuid_level, family, model, mask,* cache alignment.* The others are not touched to avoid unwanted side effects.* WARNING: this function is only called on the boot CPU. Don't add code