diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/i386/machdep.c | 14 | ||||
-rw-r--r-- | sys/pc98/pc98/machdep.c | 14 |
2 files changed, 24 insertions, 4 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 9a6d56b..33f577e 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.87 1998/06/17 16:30:16 kato Exp $ + * $Id: machdep.c,v 1.88 1998/06/22 08:05:12 kato Exp $ */ #include "apm.h" @@ -204,6 +204,17 @@ sysctl_hw_usermem SYSCTL_HANDLER_ARGS SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_INT|CTLFLAG_RD, 0, 0, sysctl_hw_usermem, "I", ""); +static int +sysctl_hw_availpages SYSCTL_HANDLER_ARGS +{ + int error = sysctl_handle_int(oidp, 0, + i386_btop(avail_end - avail_start), req); + return (error); +} + +SYSCTL_PROC(_hw, OID_AUTO, availpages, CTLTYPE_INT|CTLFLAG_RD, + 0, 0, sysctl_hw_availpages, "I", ""); + int bootverbose = 0, Maxmem = 0; #ifdef PC98 int Maxmem_under16M = 0; @@ -1126,7 +1137,6 @@ init386(first) unsigned biosbasemem, biosextmem; struct gate_descriptor *gdp; int gsel_tss; - char *cp; struct isa_device *idp; #ifndef SMP diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 9a6d56b..33f577e 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.87 1998/06/17 16:30:16 kato Exp $ + * $Id: machdep.c,v 1.88 1998/06/22 08:05:12 kato Exp $ */ #include "apm.h" @@ -204,6 +204,17 @@ sysctl_hw_usermem SYSCTL_HANDLER_ARGS SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_INT|CTLFLAG_RD, 0, 0, sysctl_hw_usermem, "I", ""); +static int +sysctl_hw_availpages SYSCTL_HANDLER_ARGS +{ + int error = sysctl_handle_int(oidp, 0, + i386_btop(avail_end - avail_start), req); + return (error); +} + +SYSCTL_PROC(_hw, OID_AUTO, availpages, CTLTYPE_INT|CTLFLAG_RD, + 0, 0, sysctl_hw_availpages, "I", ""); + int bootverbose = 0, Maxmem = 0; #ifdef PC98 int Maxmem_under16M = 0; @@ -1126,7 +1137,6 @@ init386(first) unsigned biosbasemem, biosextmem; struct gate_descriptor *gdp; int gsel_tss; - char *cp; struct isa_device *idp; #ifndef SMP |