Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern/arch/generic rump: Define pmap_res...
details: https://anonhg.NetBSD.org/src/rev/3db9db5769d2
branches: trunk
changeset: 369566:3db9db5769d2
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Aug 21 22:28:26 2022 +0000
description:
rump: Define pmap_resident_count, pmap_wired_count conditionally.
These definitions will not be used by anything yet because on every
architecture except x86 as of yeterday, pmap_resident_count and
pmap_wired_count are defined as macros anyway. But if more struct
pmaps are made private these definitions will get used.
diffstat:
sys/rump/librump/rumpkern/arch/generic/rump_generic_pmap.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r e642a696e531 -r 3db9db5769d2 sys/rump/librump/rumpkern/arch/generic/rump_generic_pmap.c
--- a/sys/rump/librump/rumpkern/arch/generic/rump_generic_pmap.c Sun Aug 21 21:35:36 2022 +0000
+++ b/sys/rump/librump/rumpkern/arch/generic/rump_generic_pmap.c Sun Aug 21 22:28:26 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_generic_pmap.c,v 1.6 2022/08/21 16:55:14 mlelstv Exp $ */
+/* $NetBSD: rump_generic_pmap.c,v 1.7 2022/08/21 22:28:26 riastradh Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_generic_pmap.c,v 1.6 2022/08/21 16:55:14 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_generic_pmap.c,v 1.7 2022/08/21 22:28:26 riastradh Exp $");
#include <sys/param.h>
@@ -89,16 +89,20 @@
return false;
}
+#ifndef pmap_resident_count
long
pmap_resident_count(struct pmap *pmap)
{
return 0;
}
+#endif
+#ifndef pmap_wired_count
long
pmap_wired_count(struct pmap *pmap)
{
return 0;
}
+#endif
Home |
Main Index |
Thread Index |
Old Index