函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Set up the CPU state needed to execute SYSENTER/SYSEXIT instructions* on 32-bit kernels:

函数原型:void enable_sep_cpu(void)

返回类型:void

参数:

1558  如果非boot_cpu_has(SYSENTER/SYSEXIT )则返回
1561  cpu等于get_cpu()
1562  tss等于per_cpu(per-CPU TSS segments. Threads are completely 'soft' on Linux,* no more per-task TSS's. The TSS size is kept cacheline-aligned* so they are allowed to end up in the .data..cacheline_aligned* section. Since TSS's are completely CPU-local, we want them, cpu)
1569  ss1等于Segment selector values corresponding to the above entries:
1570  wrmsr(MSR_IA32_SYSENTER_CS, MSR_IA32_SYSENTER_CS , 0)
1571  wrmsr(MSR_IA32_SYSENTER_ESP, (unsignedlong)(cpu_entry_stack(cpu) + 1), 0)
1572  wrmsr(MSR_IA32_SYSENTER_EIP, (unsignedlong)entry_SYSENTER_32, 0)
1574  put_cpu()
调用者
名称描述
identify_boot_cpu
identify_secondary_cpu