lkml.org 
[lkml]   [2000]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: 2.4 MM overview?
Date
Andi Kleen writes:
> On Sun, Oct 15, 2000 at 05:29:46PM +0100, Kenn Humborg wrote:
> > <Surprise!>
> >
> > __pa() and __va() are still defined as addr -/+ PAGE_OFFSET. So
> > where did I hear about 2.4 not mapping all memory? Could it be
> > that this applies only to "high memory" in x86?
>
> It only applies to high memory. To access it you have to use kmap().
> To use __pa you need to create a bounce buffer in lowmem first as of 2.4.

PAGE_OFFSET is not the difference between the physical address and the
virtual address; it is defined as the start address of the direct mapped
memory region where the kernel resides. ie, it is an absolute virtual
address. (See previous discussions on this mailing list).

It should probably be renamed in v2.5 so that it no longer implies that
it is an "_OFFSET" of anything.
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/personal/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.063 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site