[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Zero page
On Wed Feb 03 2010 at 03:06:00 +0900, Masao Uebayashi wrote:
> I need to add zero-page to support XIP. Unallocated blocks are redirected
> to this. Basically it's a static simgle page filled with zero.
> void *pmap_zeropage;
> paddr_t pmap_zeropage_phys_addr;
> and initialized by pmap.c like:
> pmap_zeropage = (void *)uvm_pageboot_alloc(PAGE_SIZE);
> pmap_zeropage_phys_addr = MIPS_KSEG0_TO_PHYS(pmap_zeropage);
> Because it's used publically (from the coming custome genfs_getpages()), it's
> defined somewhere like uvm_page.h.
Why does it need to be in pmap?
Main Index |
Thread Index |