Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 2003 10:58:16 -0700 (PDT)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 30854 for review
Message-ID:  <200305091758.h49HwGkG075948@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://perforce.freebsd.org/chv.cgi?CH=30854

Change 30854 by jmallett@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305091758.h49HwGkG075948>