Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\fpu\regset.c Create Date:2022-07-28 07:49:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:FXSR floating point environment conversions.

Proto:void convert_from_fxsr(struct user_i387_ia32_struct *env, struct task_struct *tsk)

Type:void

Parameter:

TypeParameterName
struct user_i387_ia32_struct *env
struct task_struct *tsk
234  fxsave = fxsave
235  struct _fpreg * to = (struct _fpreg * ) & 8*10 bytes for each FP-reg = 80 bytes [0]
236  struct _fpxreg * from = (struct _fpxreg * ) & 8*16 bytes for each FP-reg = 128 bytes: [0]
239  cwd = Control Word | 0xffff0000u
240  swd = Status Word | 0xffff0000u
241  twd = twd_fxsr_to_i387(fxsave)
244  fip = Instruction Pointer
245  foo = Data Pointer
250  env->fcs = ({
250  __ptr = pointer of stack
250  __ptr += ( 1UL << 12 << 2 + 1 ) - 8
250  __ptr - 1
250  })->cs
251  If tsk == current process Then
252  Save a segment register away:(These functions are used to reference data in other segments. , fos)
253  Else
254  fos = ds
256  fos |= 0xffff0000
264  When i < 8 cycle memcpy( & to[i], & from[i], size of to[0] )
Caller
NameDescribe
fpregs_get
fpregs_set
save_fsave_headerSignal frame handlers.