diff options
author | KATO Takenori <kato@FreeBSD.org> | 1998-07-02 12:39:32 +0000 |
---|---|---|
committer | KATO Takenori <kato@FreeBSD.org> | 1998-07-02 12:39:32 +0000 |
commit | a723d97973e2fce3784bc38d935cb6a2848e6830 (patch) | |
tree | 149ea6cad6347a0fdad60efb26bc76d620cca8ac | |
parent | 3744016942875b1ed62b70d27f6c3d8eb37d97ad (diff) | |
download | src-a723d97973e2fce3784bc38d935cb6a2848e6830.tar.gz src-a723d97973e2fce3784bc38d935cb6a2848e6830.zip |
Sync with sys/i386/i386/machdep.c revision 1.302.
Notes
Notes:
svn path=/head/; revision=37337
-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 9a6d56b5d9f5..33f577e53f61 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 9a6d56b5d9f5..33f577e53f61 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 |