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:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Save the FPU state (mark it for reload if necessary):* This only ever gets called for the current task.

Proto:void fpu__save(struct fpu *fpu)

Type:void

Parameter:

TypeParameterName
struct fpu *fpu
123  WARN_ON_FPU(fpu != & fpu)
125  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.
126  trace_x86_fpu_before_save(fpu)
128  If Not test_thread_flag(load FPU on return to userspace ) Then
134  trace_x86_fpu_after_save(fpu)
135  fpregs_unlock()
Caller
NameDescribe
fpu__prepare_readThis function must be called before we read a task's fpstate
get_xsave_field_ptrThis wraps up the common operations that need to occur when retrieving* data from xsave state. It first ensures that the current task was* using the FPU and retrieves the data in to a buffer. It then calculates
math_errorNote that we play around with the 'TS' bit in an attempt to get* the correct behaviour even in the presence of the asynchronous* IRQ13 behaviour