函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:When executing XSAVEOPT (or other optimized XSAVE instructions), if* a processor implementation detects that an FPU state component is still* (or is again) in its initialized state, it may clear the corresponding* bit in the header

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

返回类型:void

参数:

类型参数名称
struct fpu *fpu
148  fx等于fxsave
152  如果非FPU related CPU feature flag helper routines:则返回
155  xfeatures等于xfeatures
161  如果xfeatures按位与Mask of xstate features supported by the CPU and the kernel:的值恒等于Mask of xstate features supported by the CPU and the kernel:则返回
167  如果非xfeatures按位与XFEATURE_MASK_FP的值则
168  Control Word 等于0x37f
169  Status Word 等于0
170  Tag Word 等于0
171  Last Instruction Opcode 等于0
172  Instruction Pointer 等于0
173  Data Pointer 等于0
174  memset( & 8*16 bytes for each FP-reg = 128 bytes: [0], 0, 128)
180  如果非xfeatures按位与XFEATURE_MASK_SSE的值则memset( & 16*16 bytes for each XMM-reg = 256 bytes: [0], 0, 256)
187  feature_bit等于0x2
188  xfeatures等于Mask of xstate features supported by the CPU and the kernel:按位与xfeatures的反的值右移2位
195 xfeatures循环
196  如果xfeatures按位与0x1则
200  memcpy((void * )fx + offset, (void * ) & xsave + offset, size)
205  xfeatures右移等于1位
206  feature_bit自加
调用者
名称描述
xfpregs_set
xstateregs_get
fpregs_get
fpregs_set
xfpregs_get