delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/18/09:28:33

From: "Carlos Giani_AEN2003 (M2003)" <DARKVALE AT pcc DOT tgm DOT ac DOT at>
Organization: TGM / PCC
To: djgpp AT delorie DOT com
Date: Thu, 18 Mar 1999 15:30:28 MET-1MDT
Subject: Re: Addressing physical memory
X-mailer: Pegasus Mail v3.22
Message-ID: <AF11D811F5@pcc.tgm.ac.at>
Reply-To: djgpp AT delorie DOT com

> From:           "Peter S'heeren" <petersh AT pimc DOT be>
> Subject:        Addressing physical memory
> Date sent:      Thu, 18 Mar 1999 11:47:49 +0100
> Organization:   EUnet Belgium, Leuven, Belgium
> To:             djgpp AT delorie DOT com
> Send reply to:  djgpp AT delorie DOT com

> 
> Hi
> 
> I have a problem with accessing physical memory. I wanna do this: (1)
> allocate some physical memory pages (address isn't important, pages may
> be continguous), (2) determine their physical address, (3) pass these
> addresses to a bus-master capable PCI card that tries to read data from
> these addresses (experimental hardware).
> 
> The precise address of the pages isn't important because the PCI card
> can access the entire 4GB physical memory space. The pages should be
> mapped in linear memory space and their contents should not be swapped
> away.
> 
> Has someone faced this problem before and found a solution for it ?
> 
> Peter S'heeren
> 
> 
> 

Try to lock your memory. Have a look at the Allegro macros
(LOCK_VARIABLE etc.) for this.

+-----------------------------------------------------+
| Carlos Giani_AEN2003, PC-Club (M2003)               |
| TGM - Schule der Technik, Abteilung Elektronik      |
|                                                     |
| During holidays or weekends use this email-address: |
| darkvale AT fcmail DOT com                                 |
+-----------------------------------------------------+

- Raw text -


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