Page 2 of 2
Re: PCI BAR rewrite and access
Posted: Fri Aug 20, 2010 10:08 am
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 .
Re: PCI BAR rewrite and access
Posted: Fri Aug 20, 2010 10:41 am
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
Re: PCI BAR rewrite and access
Posted: Fri Aug 20, 2010 10:43 pm
by alphatruly
Thank you JAL , Thanks very much .
The question solved successfully ! The access to the maped device register OK !