PERFORCE change 30854 for review
Juli Mallett
jmallett at FreeBSD.org
Fri May 9 10:58:19 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=30854
Change 30854 by jmallett at jmallett_dalek on 2003/05/09 10:57:31
page zeroing from alpha.
Affected files ...
.. //depot/projects/mips/sys/mips/mips/pmap.c#11 edit
Differences ...
==== //depot/projects/mips/sys/mips/mips/pmap.c#11 (text+ko) ====
@@ -304,16 +304,33 @@
return (0);
}
+/*
+ * pmap_zero_page zeros the specified hardware page by
+ * mapping it into virtual memory and using bzero to clear
+ * its contents.
+ */
+
void
pmap_zero_page(vm_page_t m)
{
- UNIMPL();
+ vm_offset_t va = MIPS_PHYS_TO_KSEG0(VM_PAGE_TO_PHYS(m));
+ bzero((caddr_t) va, PAGE_SIZE);
}
+
+/*
+ * pmap_zero_page_area zeros the specified hardware page by
+ * mapping it into virtual memory and using bzero to clear
+ * its contents.
+ *
+ * off and size must reside within a single page.
+ */
+
void
-pmap_zero_page_area(vm_page_t pa, int off, int size)
+pmap_zero_page_area(vm_page_t m, int off, int size)
{
- UNIMPL();
+ vm_offset_t va = MIPS_PHYS_TO_KSEG0(VM_PAGE_TO_PHYS(m));
+ bzero((char *)(caddr_t)va + off, size);
}
void
More information about the p4-projects
mailing list