help me with the GDT problem

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
heshaoyue

help me with the GDT problem

Post 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!
AR

Re:help me with the GDT problem

Post 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.
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:help me with the GDT problem

Post by Pype.Clicker »

what about setting a breakpoint at 0x7C00 and running the bochs step by step from there ?
Post Reply