Try   HackMD

X64 - Global Desriptor Table (GDT)

References

Arch2001 04 SegmentationAndPrivilege 03 GDT&LDT 01

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Arch2001 04 SegmentationAndPrivilege 03 GDT&LDT 02

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Arch2001 04 SegmentationAndPrivilege 03 GDT&LDT 05

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

In Linux

arch/x86/kernel/idt.c

Albeit an excerpt from IDT-related source code, this file contains macro defin

#define G(_vector, _addr, _ist, _type, _dpl, _segment)	\
	{						\
		.vector		= _vector,		\
		.bits.ist	= _ist,			\
		.bits.type	= _type,		\
		.bits.dpl	= _dpl,			\
		.bits.p		= 1,			\
		.addr		= _addr,		\
		.segment	= _segment,		\
	}