www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/18/03:27:18

Date: Sat, 18 Aug 2001 10:26:28 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: jp_prongs AT yahoo DOT com (Nick)
Message-Id: <1438-Sat18Aug2001102628+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <f5c79439.0108171412.689b2a6b@posting.google.com>
(jp_prongs AT yahoo DOT com)
Subject: Re: Thoughts on physical address and DMA
References: <f5c79439 DOT 0108171412 DOT 689b2a6b AT posting DOT google DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: jp_prongs AT yahoo DOT com (Nick)
> Newsgroups: comp.os.msdos.djgpp
> Date: 17 Aug 2001 15:12:58 -0700
> 
> Since you add `__djgpp_conventional_base' to a physical address to
> convert it to a linear address, could you possibly _subtract_ it from
> a linear address to convert it to a physical address? If so, could the
> physical address be used for DMA?

No and no.

You are mixing linear and physical addresses, which are two different
things.  Also, __djgpp_conventional_base is a negative value; see
section 18.6 of the DJGPP FAQ for more about that.

- Raw text -


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