> > Something that may not be intuitively obvious to someone with i386 biases
> > is that on PA-RISC (at least in the case of CONFIG_DISCONTIGMEM=n), all
> > memory is in ZONE_DMA.  Does that help divine what the right answer is
> > for parisc?
> 
> It's probably assuming that since ZONE_DMA is zone 0, the DMA capable zone is
> at the bottom of any chunk of memory (node).

All memory on any PARISC boxes (with or without DISCONTIGMEM) falls into
ZONE_DMA, since PARISC boxes have IOMMUs (at last the ones that we care
about for this discussion).

So, 
mem_map = zone_table[ZONE_DMA]->zone_mem_map;
and
mem_map = NODE_DATA(0)->node_mem_map;

should give you the same result on parisc.

Does that help? If you want to change it so we use the latter form of
initialization, that should be ok for us.

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/

Reply via email to