DT's Get Loaded Wrong

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
shad

DT's Get Loaded Wrong

Post by shad »

Is there a difference between lgdt (286) and lgdt(386), if so.. how do you make sure you use the correct one. Because i notice that not only in bochs, but on the real cpu the address of my desc tables is always shifted left 16 bits and fiddled around.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:DT's Get Loaded Wrong

Post by Pype.Clicker »

i really think this should be something with the way you set up the GDT register content ... afaik, there is no difference between the 286 and 386 version of these instructions ...

Check your code once again and compare it against working pmode setting up - like TRAN start32 tutorial, or the protected mode tutorials available throught the .:QuickLinkz:. thread or even SOS sourcecode from the Clicker project...
Post Reply