On Fri, 2005-06-24 at 00:48 +0200, Roman Zippel wrote:
> Andrew Morton wrote:
> > Could I ask the arch maintainers to review the `sparsemem' patches from -mm,
> > please, if you haven't done so...
> 
> They would need a bit more work to be usable on m68k. I have a basic
> patch to use DISCONTIGMEM for m68k. There I have the problem that I have
> to deal with almost random memory configurations. So converting a
> virtual/physical address or pfn into a section number can't use a
> compile time constant, instead an offset/shift is calculated at boot
> time and patched into the kernel.

As far as the shift, you can simply use the smallest possible size as
the SECTION_SIZE.

Nothing I can think of with sparsemem requires you to have the kernel be
at pfn 0.  Unless you start at some completely huge address or have an
exceedingly low SECTION_SIZE, everything should fit.  Remember,
sparsemem doesn't deal with virt/phys layout, just converting pfns to
and from pages.  

If you want to mail me, or take this to your arch's list, we can
probably discuss more of the specifics for your arch.

-- Dave

Reply via email to