Board index » delphi » Physical address and GDT
Papai Andras
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Physical address and GDT
Hello,
Quote> After reading through some of the newsgroup discussion, it seems that in to convert it, it's loaded into the segment register. Quote> The problem is : how can I found out where GDT is? How can I access GDT? BP uses RTM.EXE to manage protected mode. RTM has support for WinAPI functions. GetSelectorBase(<selector>) returns the *linear* address of the selector. If you know the linear address (SEG*16+OFS), just create a new selector, and use function NewSelector(sBase, sLimit: longint): pointer; This returns you a pointer (sel:ofs, not seg:ofs) which points to the address, Do not use invalid selector base, it may cause a page fault (but it's not a big Andras |