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!
help me with the GDT problem
-
AR
Re:help me with the GDT problem
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.
- Pype.Clicker
- 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
what about setting a breakpoint at 0x7C00 and running the bochs step by step from there ?