Subject: Pmap change : code
To: None <port-vax@netbsd.org>
From: Ignatios Souvatzis <is@netbsd.org>
List: port-vax
Date: 01/16/2006 10:18:34
Hi,
does this look right?
(sorry for the other request; I was convinced that I committed the change
to be sure it doesn't get lost.)
Regards,
-is
Index: pmap.h
===================================================================
RCS file: /cvsroot/src/sys/arch/vax/include/pmap.h,v
retrieving revision 1.63
diff -u -r1.63 pmap.h
--- pmap.h 24 Dec 2005 23:24:07 -0000 1.63
+++ pmap.h 16 Jan 2006 09:15:02 -0000
@@ -201,6 +201,15 @@
void pmap_protect_long(pmap_t, vaddr_t, vaddr_t, vm_prot_t);
inline static boolean_t
+pmap_is_referenced(struct vm_page *pg)
+{
+ struct pv_entry *pv = pv_table + (VM_PAGE_TO_PHYS(pg) >> PGSHIFT);
+ boolean_t rv = (pv->pv_attr & PG_V) != 0;
+
+ return rv;
+}
+
+inline static boolean_t
pmap_clear_reference(struct vm_page *pg)
{
struct pv_entry *pv = pv_table + (VM_PAGE_TO_PHYS(pg) >> PGSHIFT);
--
seal your e-mail: http://www.gnupg.org/