summaryrefslogtreecommitdiff
path: root/sys/alpha
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1999-04-05 19:38:30 +0000
committerJulian Elischer <julian@FreeBSD.org>1999-04-05 19:38:30 +0000
commit8d17e69460958f683941c24ad375d150dc3bcb5c (patch)
tree5be7194389af7a604e5882afafda60102372c096 /sys/alpha
parent7b9e192e2899e95963a272001c377c5caedd20fc (diff)
Notes
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/pmap.c26
1 files changed, 21 insertions, 5 deletions
diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c
index 7c42f959ef96..7b320810c0c9 100644
--- a/sys/alpha/alpha/pmap.c
+++ b/sys/alpha/alpha/pmap.c
@@ -43,7 +43,7 @@
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* from: i386 Id: pmap.c,v 1.193 1998/04/19 15:22:48 bde Exp
* with some ideas from NetBSD's alpha pmap
- * $Id: pmap.c,v 1.14 1999/01/24 06:04:50 dillon Exp $
+ * $Id: pmap.c,v 1.15 1999/02/19 14:25:32 luoqi Exp $
*/
/*
@@ -2523,11 +2523,11 @@ pmap_kernel()
}
/*
- * pmap_zero_page zeros the specified (machine independent)
- * page by mapping the page into virtual memory and using
- * bzero to clear its contents, one machine dependent page
- * at a time.
+ * 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_offset_t pa)
{
@@ -2535,6 +2535,22 @@ pmap_zero_page(vm_offset_t pa)
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_offset_t pa, int off, int size)
+{
+ vm_offset_t va = ALPHA_PHYS_TO_K0SEG(pa);
+ bzero((char *)(caddr_t)va + off, size);
+}
+
/*
* pmap_copy_page copies the specified (machine independent)
* page by mapping the page into virtual memory and using