函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\common.c Create Date:2022-07-27 08:55:49
Last Modify:2020-03-16 20:28:31 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:setup_getcpu

函数原型:static inline void setup_getcpu(int cpu)

返回类型:void

参数:

类型参数名称
intcpu
1786  cpudata等于Helper functions to store/load CPU and node numbers
1787  struct desc_struct d = {}
1789  如果boot_cpu_has(RDTSCP )则write_rdtscp_aux(cpudata)
1793  limit0等于cpudata
1794  limit1等于cpudata右移16位
1796  type等于5
1797  dpl等于3
1798  s等于1
1799  p等于1
1800  d等于1
1802  write_gdt_entry(Provide the original GDT , GDT_ENTRY_CPUNODE, & d, DESCTYPE_S)
调用者
名称描述
cpu_initpu_init() initializes state that is per-CPU. Some data is already* initialized (naturally) in the bootstrap process, such as the GDT* and IDT. We reload them nevertheless, this function acts as a* 'CPU state barrier', nothing should get across.