函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void fpu__save(struct fpu *fpu)

返回类型:void

参数:

类型参数名称
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  如果非test_thread_flag(load FPU on return to userspace )则
134  trace_x86_fpu_after_save(fpu)
135  fpregs_unlock()
调用者
名称描述
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