我对Linux中的GDT(全局描述符表)有一些疑问。Where Linux Kernel Setup Large GDT?in pm.c [http://lxr.free-electrons.com/source/arch/x86/boot/pm.c#L123]
kernel call function setup_gdt() and it set up a small GDT with only three entries.&
我试图在铁锈和全球asm中设置GDT,但当我尝试加载GDT时,它似乎是三重故障。# Load the GDT and set all of the segments.LoadGDT: /// The GDT (Global Descriptor Table).static ref GLOBAL_DESCRIPTOR_TABLE
; Refer to GDT.INC for detailsGDTFill 0, 0xFFFFF,CS_ACCES,1101b,gdt_cs; Store Limit of GDT beginning at location marked as gdtptr; Load gdt using lgdt.;
; Initially fill <e