函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:setup the xstate image representing the init state

函数原型:static void __init setup_init_fpu_buf(void)

返回类型:void

参数:

410  on_boot_cpu((__section__(".init.data")))等于1
412  WARN_ON_FPU(!on_boot_cpu)
413  on_boot_cpu等于0
415  如果非boot_cpu_has(XSAVE/XRSTOR/XSETBV/XGETBV instructions )则返回
418  Record the offsets and sizes of various xstates contained* in the XSAVE state memory layout.
419  Print out all the supported xstate features:
421  如果boot_cpu_has(XSAVES/XRSTORS instructions )则xcomp_bv等于1左移63位按位或Mask of xstate features supported by the CPU and the kernel:
427  This function is called only during boot time when x86 caps are not set* up and alternative can not be used yet.
433  This function is called only during boot time when x86 caps are not set* up and alternative can not be used yet.
调用者
名称描述
fpu__init_system_xstateEnable and initialize the xsave feature.* Called once per system bootup.