Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void __init fpu__init_system(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
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.
Caller
NameDescribe
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