lkml.org 
[lkml]   [1999]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: new bootmem structure
Date
Jes Sorensen writes:
> Roman> Hi, Last week I was looking into the new bootmem stuff and got
> Roman> some problems how to port that to the m68k architecture. Is
> Roman> there a special reason that bootmem.c wants physical addresses?
> Roman> Logical addresses would be easier for us, since we have the
> Roman> possibility of all kinds of memory configurations, but
> Roman> bootmem.c assumes a single memory chunk starting at zero. I
> Roman> would at least suggest to add a start offset, to minimize
> Roman> memory comsumption (even if it's only at boottime).
>
> Thats the reason why we should implement PageSkip().

And the other thing I spot here is that I believe that __pa() is NOT a
short name for virt_to_phys, but __pa() is supposed to return the offset
into physical memory, not the address OF physical memory (which virt_to_phys
does).

I've already grappled with this on the ARM since we have a similar
problem - some architectures have contiguous memory starting at either
0x00000000 or 0x10000000 (physical) or even worse memory which can be
in up to 4 banks spread out across 256MB. No changes to the generic
code were necessary.
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/~rmk/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.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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