[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Zero page
> 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.
did you look at uvm_loanzero, which does something similar?
> 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.
> Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635
Main Index |
Thread Index |