PCI BAR rewrite and access

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.
alphatruly
Posts: 9
Joined: Tue Aug 17, 2010 7:34 pm

Re: PCI BAR rewrite and access

Post by alphatruly »

jal wrote:and I'm not sure what GS does there...
Oh........

I wrote a program that prepared descriptor for entering the protect mode first and then load the GS with a 4GB selector in protect mode . The end , I return to the real mode , so that I can access memory which above 0FFFFFH in the real mode .
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: PCI BAR rewrite and access

Post by jal »

alphatruly wrote:I wrote a program that prepared descriptor for entering the protect mode first and then load the GS with a 4GB selector in protect mode . The end , I return to the real mode , so that I can access memory which above 0FFFFFH in the real mode .
Ok, fair enough, but if you just load DS that way, you don't need any segment overrides. It is called "unreal mode", and can be found on the wiki.


JAL
alphatruly
Posts: 9
Joined: Tue Aug 17, 2010 7:34 pm

Re: PCI BAR rewrite and access

Post by alphatruly »

Thank you JAL , Thanks very much .

The question solved successfully ! The access to the maped device register OK !
Post Reply