summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1998-07-02 12:39:32 +0000
committerkato <kato@FreeBSD.org>1998-07-02 12:39:32 +0000
commit7b473ef0b030fdcaf86473c29529dc1e928f4777 (patch)
tree34b4bb9b3e2ad2c0d8968ad0872cdf2d9c5cbf15 /sys
parentad27e7626b4ef6e81a98bbf0999ac0d520db266e (diff)
downloadFreeBSD-src-7b473ef0b030fdcaf86473c29529dc1e928f4777.zip
FreeBSD-src-7b473ef0b030fdcaf86473c29529dc1e928f4777.tar.gz
Sync with sys/i386/i386/machdep.c revision 1.302.
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/i386/machdep.c14
-rw-r--r--sys/pc98/pc98/machdep.c14
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
OpenPOWER on IntegriCloud