Skip to contentSkip to conversation

IA32 | [OFFTOPIC]: Segementation Question

DISCUSSION Matthias-Christian Ott 2 participants 3 messages Jun 2, 2005

lore
Share & tools
lore
#0 lore raw

Hi.
I'm currently doing some research on the IA32 Segementation Concept. But there's one thing I don't understand:
If I perform a far jump it looks like this:
jmp 16bit:32bit

The 16bit are representing the segement number and the 32bit the offset. But to what refers the 16bit? To the GDT or the current LDT?

--
Thanks

Matthias-Christian Ott

#1 lore raw
Quoted 6 lines · Matthias-Christian Ott

Hi.
I'm currently doing some research on the IA32 Segementation Concept. But there's one thing I don't understand:
If I perform a far jump it looks like this:
jmp 16bit:32bit

The 16bit are representing the segement number and the 32bit the offset. But to what refers the 16bit? To the GDT or the current LDT?

IIRC, there is one bit flag in selector that decides if it is from GDT or LDT. But maybe I am wrong...

Grzegorz Kulewski

#2 lore raw
Quoted 7 lines · Grzegorz Kulewski
Quoted 5 lines · Matthias-Christian Ott

Hi.
I'm currently doing some research on the IA32 Segementation Concept. But there's one thing I don't understand:
If I perform a far jump it looks like this:
jmp 16bit:32bit

Quoted 8 lines
Quoted 1 line

The 16bit are representing the segement number and the 32bit the offset. But to what refers the 16bit? To the GDT or the current LDT?

IIRC, there is one bit flag in selector that decides if it is from GDT or LDT. But maybe I am wrong...

Grzegorz Kulewski

Ok, you're right, I read over this (see IA-32 Manual Part 3, Page 81).

--
Matthias-Christian Ott