Module Name:    src
Committed By:   reinoud
Date:           Tue Aug 30 10:37:43 UTC 2011

Modified Files:
        src/sys/arch/usermode/usermode: pmap.c

Log Message:
Implement pmap_reference(). Note that i have no idea as to when this reference
is released...


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/usermode/usermode/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/usermode/usermode/pmap.c
diff -u src/sys/arch/usermode/usermode/pmap.c:1.40 src/sys/arch/usermode/usermode/pmap.c:1.41
--- src/sys/arch/usermode/usermode/pmap.c:1.40	Tue Aug 30 10:29:34 2011
+++ src/sys/arch/usermode/usermode/pmap.c	Tue Aug 30 10:37:42 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.40 2011/08/30 10:29:34 reinoud Exp $ */
+/* $NetBSD: pmap.c,v 1.41 2011/08/30 10:37:42 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Reinoud Zandijk <rein...@netbsd.org>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.40 2011/08/30 10:29:34 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.41 2011/08/30 10:37:42 reinoud Exp $");
 
 #include "opt_memsize.h"
 #include "opt_kmempages.h"
@@ -362,7 +362,8 @@
 void
 pmap_reference(pmap_t pmap)
 {
-aprint_debug("pmap_reference %p\n", (void *) pmap);
+	aprint_debug("pmap_reference %p\n", (void *) pmap);
+	pmap->pm_count++;
 }
 
 long

Reply via email to