delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/11/15/06:33:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Roland Zitzke" <NZEONTQYRAHL AT spammotel DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Obtaining the physical address of a pointer using PMODE
Date: Tue, 15 Nov 2005 12:16:27 +0100
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
NNTP-Posting-Host: fw.telos.de
Message-ID: <4379c36c_2@news.ecore.net>
X-Trace: news.ecore.net 1132053356 fw.telos.de (15 Nov 2005 12:15:56 +0100)
X-Complaints-To: abuse AT ecore DOT net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,
I read somewhere, that the pmode/dj extender has a fixed mapping of pointers 
to physical memory.
Thus, if I write something like
unsigned char* p = malloc(1024);
how can I obtain the physical location of the data pointed to by p, provided 
that I use pmode?
Background is that I need this to allocate a DMA buffer and I do not 
necessarily need virtual memory in my application.

Thanks and regards
Roland


- Raw text -


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