user1454902
user1454902

Reputation: 738

Is it possible to get the address of the GDT?

I have a bootloader that is setting up the GDT for me. Is it possible to find out the address of this GDT so I can use it?

Upvotes: 2

Views: 602

Answers (1)

Carl Norum
Carl Norum

Reputation: 225002

Sure, just use the sgdt instruction to read out the current setting.

Upvotes: 3

Related Questions