GDT in gdt.S

23 views
Skip to first unread message

Inzemamul Haque

unread,
Aug 11, 2016, 6:38:02 AM8/11/16
to muen-dev
Hi,
I was going through the source code. In gdt.S, when gdt is defined, it is just setting up some bits (21,15,11,12) for segment descriptor 1. But as I know the flat memory model in segmentation is being used in Muen, so the base should be zero which is actually zero, but the limit should be max (i.e. bit 19 should also be set). In none of the segments this is the case.

I am new to Intel and assembly, may be I am missing something. Can anyone explain that part?

Inzemam.

Reto Buerki

unread,
Aug 11, 2016, 7:36:21 AM8/11/16
to Inzemamul Haque, muen-dev
Hi,
Muen runs in IA-32e 64-bit Mode where segmentation is (mostly) disabled.
We just setup the bare minimum to get VMX root mode going.

For more information see the Intel Software Developer's Manual (SDM)
[1], sections 3.2.4 and 5.3.1.

Kind regards,
- reto

[1] -
https://www-ssl.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html

Reply all
Reply to author
Forward
0 new messages