Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Internal helper, do not use directly. Use switch_fpu_return() instead.

Proto:static inline void __fpregs_load_activate(void)

Type:void

Parameter:Nothing

536  fpu = fpu
537  cpu = smp_processor_id()
539  If WARN_ON_ONCE(flags & I am a kernel thread ) Then Return
542  If Not fpregs_state_valid(fpu, cpu) Then
543  copy_kernel_to_fpregs( & @state:* In-memory copy of all FPU registers that we save/restore* over context switches. If the task is using the FPU then* the registers in the FPU are more recent than this state* copy. If the task context-switches away then they get)
544  fpregs_activate(fpu)
545  @last_cpu:* Records the last CPU on which this context was loaded into* FPU registers = cpu
547  clear_thread_flag(load FPU on return to userspace )
Caller
NameDescribe
switch_fpu_returnLoad FPU context before returning to userspace.
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'.