summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-04-28 00:15:48 +0000
committerpeter <peter@FreeBSD.org>2002-04-28 00:15:48 +0000
commit0feba1c376c506a50823d2756c48550954655faf (patch)
treeed9386cd8bc5bf5db1a8d49e5119aef3aa591423 /sys/vm/vm_page.c
parent91d576b0c5019ef4261a145263a2f6cb196c4e41 (diff)
downloadFreeBSD-src-0feba1c376c506a50823d2756c48550954655faf.zip
FreeBSD-src-0feba1c376c506a50823d2756c48550954655faf.tar.gz
We do not necessarily need to map/unmap pages to zero parts of them.
On systems where physical memory is also direct mapped (alpha, sparc, ia64 etc) this is slightly harmful.
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 746c03a..431ac70 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -457,6 +457,18 @@ vm_page_zero_fill(vm_page_t m)
}
/*
+ * vm_page_zero_fill_area:
+ *
+ * Like vm_page_zero_fill but only fill the specified area.
+ */
+boolean_t
+vm_page_zero_fill_area(vm_page_t m, int off, int size)
+{
+ pmap_zero_page_area(m, off, size);
+ return (TRUE);
+}
+
+/*
* vm_page_copy:
*
* Copy one page to another
OpenPOWER on IntegriCloud