Mail Archives: djgpp/1999/03/18/09:28:33
> 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 -