Page 1 of 1

help me with the GDT problem

Posted: Wed Apr 20, 2005 12:23 am
by heshaoyue
I write a programme in order to enter the protected mode,but i meet a problem.The following is what the bochs said:
00002442485i[CPU ] selector->index*8 + 7 = 1031
00002442485i[CPU ] gdtr.limit = 0
00002442485i[CPU ] fetch_raw_descriptor: GDT: index > limit
What's wrong with the GDT?anyone who know could tell me?thank you!

Re:help me with the GDT problem

Posted: Wed Apr 20, 2005 1:52 am
by AR
That says that the entry you tried to load is not inside the GDT and the "gdtr.limit = 0" indicates the load code is probably incorrect.

Re:help me with the GDT problem

Posted: Wed Apr 20, 2005 2:24 am
by Pype.Clicker
what about setting a breakpoint at 0x7C00 and running the bochs step by step from there ?