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:00
Last Modify:2020-03-16 20:28:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Load the original GDT from the per-cpu structure

Proto:void load_direct_gdt(int cpu)

Type:void

Parameter:

TypeParameterName
intcpu
593  address = Provide the original GDT
594  size = GDT_SIZE - 1
595  load_gdt( & gdt_descr)
Caller
NameDescribe
switch_to_new_gdtCurrent gdt points %fs at the "master" per-cpu area: after this,* it's on the real one.
native_load_tr_descThe LTR instruction marks the TSS GDT entry as busy. On 64-bit, the GDT is* a read-only remapping. To prevent a page fault, the GDT is switched to the* original writeable version when needed.