函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:FXSR floating point environment conversions.

函数原型:void convert_from_fxsr(struct user_i387_ia32_struct *env, struct task_struct *tsk)

返回类型:void

参数:

类型参数名称
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等于栈指针
250  __ptr加等于1UL左移12位左移2加1位的值减8
250  __ptr减1
250  })->cs
251  如果tsk恒等于当前进程
252  Save a segment register away:(取寄存器值(ds), fos)
253  否则
254  fos等于ds
256  fos或等于0xffff0000
264 i小于8循环memcpy( & to[i], & from[i], to[0]的长度)
调用者
名称描述
fpregs_get
fpregs_set
save_fsave_headerSignal frame handlers.