summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-06-30 21:25:58 +0000
committerphk <phk@FreeBSD.org>1998-06-30 21:25:58 +0000
commit107b074e2348937933283de1a7851d864a95ff23 (patch)
tree95c30f43613946a6258152d71a670f899a588e17 /sys/amd64
parent755fd03ef8c4c7cd442a382538064abb074ea245 (diff)
downloadFreeBSD-src-107b074e2348937933283de1a7851d864a95ff23.zip
FreeBSD-src-107b074e2348937933283de1a7851d864a95ff23.tar.gz
Add 3 sysctl variables for future use by ps)1_
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/machdep.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index b434178..6e31276 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.300 1998/06/17 14:57:55 bde Exp $
+ * $Id: machdep.c,v 1.301 1998/06/21 17:46:53 bde Exp $
*/
#include "apm.h"
@@ -194,6 +194,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;
long dumplo;
@@ -1113,7 +1124,6 @@ init386(first)
unsigned biosbasemem, biosextmem;
struct gate_descriptor *gdp;
int gsel_tss;
- char *cp;
struct isa_device *idp;
#ifndef SMP
OpenPOWER on IntegriCloud