Problem with far jump ptr16:32 and data descriptor in GDT

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.
startrail
Posts: 12
Joined: Tue Jan 05, 2016 9:10 am

Re: Problem with far jump ptr16:32 and data descriptor in GD

Post by startrail »

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.
ggodw000
Member
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

Post by ggodw000 »

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
Post Reply