delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/09/03/01:01:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Wed, 02 Sep 2009 23:47:55 -0500
From: "Charles Sandmann" <cwsdpmi AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
References: <850b568b-640c-435e-b6ca-deb8953ef1d5 AT y10g2000prf DOT googlegroups DOT com>
Subject: Re: How to access 0xFF800000 data ?
Date: Wed, 2 Sep 2009 23:47:53 -0500
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
Message-ID: <cvWdnfdIDYbh1wLXnZ2dnUVZ_sadnZ2d@earthlink.com>
Lines: 12
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 64.91.192.48
X-Trace: sv3-wJSiLf1ScTv+74GAIv1bgbebTCRRmA6SwOSnntHGA31F0eaa2snMqkp+oa7NriJ3qObmQHRrp/7CRVB!wCrWDOBf4a3enGfDPa7Vqg67GTJmWHbTb1oMu/zEYGReA/5QrxSkK4N/rd6XAG9dBrKzQYXfTi9F!sODDFn1xLFoQzUBjsbIk0t2wqIRvVCU=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.39
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> I try to use DJGPP to write an utility to flash BIOS.
> In the DJGPP, how to read/write 0xFF800000 data ?

In addition to using either far or near pointers, you also need to
map the address space with DPMI (function 0x800),
__dpmi_physical_address_mapping(__dpmi_meminfo *_info);

You can probably also use the PMODE DPMI provider if
you are running in RAW or XMS mode, since it does not
enable paging and you could access the memory directly. 


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019