函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fpstate_init

函数原型:void fpstate_init(union fpregs_state *state)

返回类型:void

参数:

类型参数名称
union fpregs_state *state
151  如果非static_cpu_has(Onboard FPU )则
152  fpstate_init_soft( & soft)
153  返回
156  memset(state, 0, 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:)
158  如果static_cpu_has(XSAVES/XRSTORS instructions )则fpstate_init_xstate( & xsave)
160  如果static_cpu_has(FXSAVE/FXRSTOR, CR4.OSFXSR )则fpstate_init_fxstate( & fxsave)
162  否则Legacy x87 fpstate state init:
调用者
名称描述
fpu__initializeActivate the current task's in-memory FPU context,* if it has not been used before:
xstateregs_set
fpu__init_system_genericOnce per bootup FPU initialization sequences that will run on most x86 CPUs: