函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\pm.c Create Date:2022-07-27 08:25:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:设置全局描述(GDT)

函数原型:static void setup_gdt(void)

返回类型:void

参数:

68  static const u64 boot_gdt[] = {[Simple and small GDT entries for booting only: ] = Constructor for a conventional segment GDT (or LDT) entry.* This is a macro so it can be used in initializers.(0xc09b, 0, 0xfffff), [GDT_ENTRY_BOOT_DS] = Constructor for a conventional segment GDT (or LDT) entry.* This is a macro so it can be used in initializers.(0xc093, 0, 0xfffff), [GDT_ENTRY_BOOT_TSS] = Constructor for a conventional segment GDT (or LDT) entry.* This is a macro so it can be used in initializers.(0x0089, 4096, 103), }
84  len等于boot_gdt的长度减1
85  ptr = (u32) & boot_gdt + (取寄存器值(ds) << 4)
87  asm volatile
调用者
名称描述
go_to_protected_mode进入保护模式