Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\common.c Create Date:2022-07-28 07:55:26
Last Modify:2020-03-16 20:28:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Set up the CPU state needed to execute SYSENTER/SYSEXIT instructions* on 32-bit kernels:

Proto:void enable_sep_cpu(void)

Type:void

Parameter:Nothing

1558  If Not boot_cpu_has(SYSENTER/SYSEXIT ) Then Return
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()
Caller
NameDescribe
identify_boot_cpu
identify_secondary_cpu