Setting the Cr0.PE bit before changing the selectors makes it work now. Thanks for the help Gigasoft.
Was able to write to the video memory in32 bit mode successfully.
Now I am planning to write an ISO CD reader so that I can locate my kernel and other modules and get to coding in C.
Problem with far jump ptr16:32 and data descriptor in GDT
-
- Member
- Posts: 396
- Joined: Wed Nov 18, 2015 3:04 pm
- Location: San Jose San Francisco Bay Area
- Contact:
Re: Problem with far jump ptr16:32 and data descriptor in GD
looks like misread, you loaded segment selectors before PE bit, i'd not do it.
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails