Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\fpu\api.h Create Date:2022-07-28 05:59:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static inline void fpregs_lock(void)

Type:void

Parameter:Nothing

35  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
36  local_bh_disable()
Caller
NameDescribe
fpu__saveSave the FPU state (mark it for reload if necessary):* This only ever gets called for the current task.
fpu__copy
copy_init_fpstate_to_fpregsClear FPU registers by setting them up from* the init fpstate:
save_fsave_headerSignal frame handlers.
copy_fpstate_to_sigframeSave the fpu, extended register state to the user signal frame.* 'buf_fx' is the 64-byte aligned pointer at which the [f|fx|x]save* state is copied.* 'buf' points to the 'buf_fx' or to the fsave header followed by 'buf_fx'.
__fpu__restore_sig