Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Clear the FPU state back to init state.* Called by sys_execve(), by the signal handler code and by various* error paths.

Proto:void fpu__clear(struct fpu *fpu)

Type:void

Parameter:

TypeParameterName
struct fpu *fpu
323  WARN_ON_FPU(fpu != & fpu)
325  Drops current FPU state: deactivates the fpregs and* the fpstate. NOTE: it still leaves previous contents* in the fpregs in the eager-FPU case.* This function can be used in cases where we know that* a state-restore is coming: either an explicit one,
330  Activate the current task's in-memory FPU context,* if it has not been used before:
331  If static_cpu_has(Onboard FPU ) Then Clear FPU registers by setting them up from* the init fpstate:
Caller
NameDescribe
flush_thread
__fpu__restore_sig