Couple MMU issue free_area_init_core()

Mario Smarduch <[email protected]>
Newsgroups org.kernel.vger.linux-newbie
Message-ID <2DDB038789B01B4B80B0D3F1FF7CBDC20645F6E7@lhreml509-mbb.china.huawei.com>
Hi,
   while going through some code for project I'm working on I found
couple things which I would like to get some feedback/understanding on.

free_area_init_core()
for each zone calculates 
memmap_pages=PAGE_ALIGN(size * sizeof(struct page)) >> PAGE_SHIFT;

Which is total memory range zone spans and then it subtracts that value from
realsize (memory present in zone). I'm bit confused for SPARSEMEM case
where sections not occupied don't have memmap arrays (mem_section[] indexed)
allocated. Should not the calculation of memmap_pages above take that into
consideration?

Also related to same function I've notice 'dma_reserve' is hardly defined
anywhere. The boards I've looked at (ARM PBX, PXA) have their kernel
text, data, bss allocated in DMA zone, any reasons why 'dma_reserve' is
not defined to correctly determine zone watermarks and other things later
on?

- Mario

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.