FreeBSD/sys/arm/arm/pmap-v6.c
/*
 *	pmap_zero_page zeros the specified hardware page by mapping
 *	the page into KVM and using bzero to clear its contents.
 */
pmap_zero_page zeros the specified hardware page by mapping
the page into KVM and using bzero to clear its contents.
pmap_zero_page zeros the specified hardware page by mapping the page into KVM and using bzero to clear its contents .
void
pmap_zero_page(vm_page_t m)
{
	struct sysmaps *sysmaps;
	sched_pin();
	sysmaps = &sysmaps_pcpu[PCPU_GET(cpuid)];
	mtx_lock(&sysmaps->lock);
	if (pte2_load(sysmaps->CMAP2) != 0)
		panic("%s: CMAP2 busy", __func__);
	pte2_store(sysmaps->CMAP2, PTE2_KERN_NG(VM_PAGE_TO_PHYS(m), PTE2_AP_KRW,
	    vm_page_pte2_attr(m)));
	pagezero(sysmaps->CADDR2);
	pte2_clear(sysmaps->CMAP2);
	tlb_flush((vm_offset_t)sysmaps->CADDR2);
	sched_unpin();
	mtx_unlock(&sysmaps->lock);
}
void pmap_zero_page ( vm_page_t m ) { struct sysmaps * sysmaps ; sched_pin ( ) ; sysmaps = & sysmaps_pcpu [ PCPU_GET ( cpuid ) ] ; mtx_lock ( & sysmaps -> lock ) ; if ( pte2_load ( sysmaps -> CMAP2 ) != 0 ) panic ( " " , __func__ ) ; pte2_store ( sysmaps -> CMAP2 , PTE2_KERN_NG ( VM_PAGE_TO_PHYS ( m ) , PTE2_AP_KRW , vm_page_pte2_attr ( m ) ) ) ; pagezero ( sysmaps -> CADDR2 ) ; pte2_clear ( sysmaps -> CMAP2 ) ; tlb_flush ( ( vm_offset_t ) sysmaps -> CADDR2 ) ; sched_unpin ( ) ; mtx_unlock ( & sysmaps -> lock ) ; }
pmap_zero_page zeros the specified hardware page by mapping
      the page into KVM and using bzero to clear its contents.
pmap_zero_page zeros the specified hardware page by mapping the page into KVM and using bzero to clear its contents .