FreeBSD/sys/arm/arm/pmap-v6.c
/*
 *  Pre-bootstrap epoch virtual space alocator.
 */
Pre-bootstrap epoch virtual space alocator.
Pre - bootstrap epoch virtual space alocator .
vm_offset_t
pmap_preboot_reserve_pages(u_int num)
{
	u_int i;
	vm_offset_t start, va;
	pt2_entry_t *pte2p;
	start = va = virtual_avail;
	virtual_avail += num * PAGE_SIZE;
	for (i = 0; i < num; i++) {
		pte2p = pmap_preboot_vtopte2(va);
		pte2_store(pte2p, 0);
		va += PAGE_SIZE;
	}
	return (start);
}
vm_offset_t pmap_preboot_reserve_pages ( u_int num ) { u_int i ; vm_offset_t start , va ; pt2_entry_t * pte2p ; start = va = virtual_avail ; virtual_avail += num * PAGE_SIZE ; for ( i = 0 ; i < num ; i ++ ) { pte2p = pmap_preboot_vtopte2 ( va ) ; pte2_store ( pte2p , 0 ) ; va += PAGE_SIZE ; } return ( start ) ; }
Pre-bootstrap epoch virtual space alocator.
Pre - bootstrap epoch virtual space alocator .
/* Allocate virtual space. */ /* Zero the mapping. */