函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Load the original GDT from the per-cpu structure

函数原型:void load_direct_gdt(int cpu)

返回类型:void

参数:

类型参数名称
intcpu
593  address等于Provide the original GDT
594  size等于GDT_SIZE减1
595  load_gdt( & gdt_descr)
调用者
名称描述
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.