FreeBSD/sys/arm/arm/pmap-v4.c
vm_offset_t
pmap_map(vm_offset_t *virt, vm_offset_t start, vm_offset_t end, int prot)
{
	vm_offset_t sva = *virt;
	vm_offset_t va = sva;

	PDEBUG(1, printf("pmap_map: virt = %08x, start = %08x, end = %08x, "
	    "prot = %d\n", (uint32_t) *virt, (uint32_t) start, (uint32_t) end,
	    prot));

	while (start < end) {
		pmap_kenter(va, start);
		va += PAGE_SIZE;
		start += PAGE_SIZE;
	}
	*virt = va;
	return (sva);
}
/*
 *	Used to map a range of physical addresses into kernel
 *	virtual address space.
 *
 *	The value passed in '*virt' is a suggested virtual address for
 *	the mapping. Architectures which can support a direct-mapped
 *	physical to virtual region can return the appropriate address
 *	within that region, leaving '*virt' unchanged. Other
 *	architectures should map the pages starting at '*virt' and
 *	update '*virt' with the first usable address after the mapped
 *	region.
 */
Used to map a range of physical addresses into kernel
virtual address space.

The value passed in '*virt' is a suggested virtual address for
the mapping. Architectures which can support a direct-mapped
physical to virtual region can return the appropriate address
within that region, leaving '*virt' unchanged. Other
architectures should map the pages starting at '*virt' and
update '*virt' with the first usable address after the mapped
region.
Used to map a range of physical addresses into kernel virtual address space . The value passed in ' * virt ' is a suggested virtual address for the mapping . Architectures which can support a direct - mapped physical to virtual region can return the appropriate address within that region leaving ' * virt ' unchanged . Other architectures should map the pages starting at ' * virt ' and update ' * virt ' with the first usable address after the mapped region .
vm_offset_t
pmap_map(vm_offset_t *virt, vm_offset_t start, vm_offset_t end, int prot)
{
	vm_offset_t sva = *virt;
	vm_offset_t va = sva;
	PDEBUG(1, printf("pmap_map: virt = %08x, start = %08x, end = %08x, "
	    "prot = %d\n", (uint32_t) *virt, (uint32_t) start, (uint32_t) end,
	    prot));
	while (start < end) {
		pmap_kenter(va, start);
		va += PAGE_SIZE;
		start += PAGE_SIZE;
	}
	*virt = va;
	return (sva);
}
vm_offset_t pmap_map ( vm_offset_t * virt , vm_offset_t start , vm_offset_t end , int prot ) { vm_offset_t sva = * virt ; vm_offset_t va = sva ; PDEBUG ( 1 , printf ( " " " \n " , ( uint32_t ) * virt , ( uint32_t ) start , ( uint32_t ) end , prot ) ) ; while ( start < end ) { pmap_kenter ( va , start ) ; va += PAGE_SIZE ; start += PAGE_SIZE ; } * virt = va ; return ( sva ) ; }
Used to map a range of physical addresses into kernel
      virtual address space.
Used to map a range of physical addresses into kernel virtual address space .