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

Name:Load PKRU from the FPU context if available. Delay loading of the* complete FPU state until the return to userland.

Proto:static inline void switch_fpu_finish(struct fpu *new_fpu)

Type:void

Parameter:

TypeParameterName
struct fpu *new_fpu
595  pkru_val = init_pkru_value
598  If Not static_cpu_has(Onboard FPU ) Then Return
601  set_thread_flag(load FPU on return to userspace )
603  If Not This macro is for detection of features which need kernel* infrastructure to be used(OS Protection Keys Enable ) Then Return
610  If mm Then
611  pk = get_xsave_addr( & xsave, XFEATURE_PKRU)
612  If pk Then pkru_val = pkru
615  __write_pkru(pkru_val)
Caller
NameDescribe
__switch_toswitch_to(x,y) should switch tasks from x to y