Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/usermode Implement pmap_reference(). Note ...
details: https://anonhg.NetBSD.org/src/rev/78e4a1caacdb
branches: trunk
changeset: 769022:78e4a1caacdb
user: reinoud <reinoud%NetBSD.org@localhost>
date: Tue Aug 30 10:37:42 2011 +0000
description:
Implement pmap_reference(). Note that i have no idea as to when this reference
is released...
diffstat:
sys/arch/usermode/usermode/pmap.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r fd8fcddd28fc -r 78e4a1caacdb sys/arch/usermode/usermode/pmap.c
--- a/sys/arch/usermode/usermode/pmap.c Tue Aug 30 10:29:34 2011 +0000
+++ b/sys/arch/usermode/usermode/pmap.c Tue Aug 30 10:37:42 2011 +0000
@@ -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 <reinoud%NetBSD.org@localhost>
@@ -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
Home |
Main Index |
Thread Index |
Old Index