函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Clear FPU registers by setting them up from* the init fpstate:

函数原型:static inline void copy_init_fpstate_to_fpregs(void)

返回类型:void

参数:

299  Use fpregs_lock() while editing CPU's FPU registers or fpu->state.* A context switch will (and softirq might) save CPU's FPU registers to* fpu->state and set TIF_NEED_FPU_LOAD leaving CPU's FPU registers in* a random state.
301  如果use_xsave()则Restore processor xstate from xsave area.
303  否则如果static_cpu_has(FXSAVE/FXRSTOR, CR4.OSFXSR )则copy_kernel_to_fxregs( & fxsave)
305  否则copy_kernel_to_fregs( & fsave)
308  如果boot_cpu_has(OS Protection Keys Enable )则copy_init_pkru_to_fpregs()
311  fpregs_mark_activate()
312  fpregs_unlock()
调用者
名称描述
fpu__clearClear the FPU state back to init state.* Called by sys_execve(), by the signal handler code and by various* error paths.