Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/irix Set irm->bufmem = uvmexp.filepages;
details: https://anonhg.NetBSD.org/src/rev/0c659cea9edd
branches: trunk
changeset: 749395:0c659cea9edd
user: dsl <dsl%NetBSD.org@localhost>
date: Sat Nov 28 20:09:56 2009 +0000
description:
Set irm->bufmem = uvmexp.filepages;
as suggested in PR/30408
diffstat:
sys/compat/irix/irix_sysmp.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 9aed528791a4 -r 0c659cea9edd sys/compat/irix/irix_sysmp.c
--- a/sys/compat/irix/irix_sysmp.c Sat Nov 28 17:27:30 2009 +0000
+++ b/sys/compat/irix/irix_sysmp.c Sat Nov 28 20:09:56 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irix_sysmp.c,v 1.21 2008/04/28 20:23:42 martin Exp $ */
+/* $NetBSD: irix_sysmp.c,v 1.22 2009/11/28 20:09:56 dsl Exp $ */
/*-
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_sysmp.c,v 1.21 2008/04/28 20:23:42 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_sysmp.c,v 1.22 2009/11/28 20:09:56 dsl Exp $");
#include <sys/errno.h>
#include <sys/param.h>
@@ -152,7 +152,6 @@
static int
irix_sysmp_saget(int cmd, char *buf, size_t len)
{
- extern u_int bufpages;
void *kbuf;
int error = 0;
@@ -169,7 +168,7 @@
irm->availsmem = uvmexp.free + active + inactive
+ uvmexp.wired + (uvmexp.swpages - uvmexp.swpgonly);
irm->availrmem = uvmexp.free + active + inactive + uvmexp.wired;
- irm->bufmem = bufpages;
+ irm->bufmem = uvmexp.filepages;
irm->physmem = uvmexp.npages;
irm->dchunkpages = 0; /* unsupported */
irm->pmapmem = 0; /* unsupported */
Home |
Main Index |
Thread Index |
Old Index