Mail Archives: djgpp/1999/08/11/08:39:07
From: | Chris Holmes <cholmes AT surfsouth DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Accessing memory above an adress of 1MB
|
Date: | Mon, 09 Aug 1999 07:34:40 -0400
|
Organization: | Georgia Institute of Technology, Atlanta GA, USA
|
Lines: | 33
|
Message-ID: | <37AEBCD0.52AE@surfsouth.com>
|
References: | <37aeb1ba DOT 11535499 AT NotesXNT>
|
NNTP-Posting-Host: | r69h109.res.gatech.edu
|
Mime-Version: | 1.0
|
X-Trace: | news-int.gatech.edu 934198897 20337 128.61.69.109 (9 Aug 1999 11:41:37 GMT)
|
X-Complaints-To: | usenet AT news DOT gatech DOT edu
|
NNTP-Posting-Date: | 9 Aug 1999 11:41:37 GMT
|
X-Mailer: | Mozilla 3.04Gold (Win95; I)
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Martin Czamai wrote:
>
> Hello!
>
> I want to access the memory space given from a BAR (base adress
> register) of a PCI controller. (the adress is dynamic allocated by the
> system)
> Therefore I wrote a function that returns the (absolute) adress that
> has to be accessed. Usually it is around 0xFFFFF000 .
> I used __djgpp_map_physical_memory (mappedBAR, NoBytes, BaseAdr) for
> mapping the device to a created memory block named 'mappedBAR'; the
> number of bytes to map (NoBytes) is a multiple of a mem-page found
> with __dpmi_get_page_size(&NoBytes) (4096 bytes) and the base adress
> (BaseAdr) is equal the absolute address of the BAR.
> My problem is, that the __djgpp_map_physical_memory (mappedBAR,
> NoBytes, BaseAdr) returns EACCES as errno, wich is a rejection of the
> request to the DPMI server. What does this message exactly mean?
> Who could help me getting started to access this memory?
> I am using RHIDE 1.4.
> Please send your reply to Martin_Czamai AT peak-service DOT com .
> Thank you!
Wow... FFFFF000 is pretty near the 4 gig limit. Unless you have
4 gig of ram, I think the PCI controller is lying to you.
Chris
--
I know that I will never be politically correct,
and I don't give a damn about my lack of etiquette!
-- Meatloaf
- Raw text -