summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include/md_var.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-08-30 04:04:37 +0000
committerpeter <peter@FreeBSD.org>2002-08-30 04:04:37 +0000
commitc3bdd669c3f39a9ac1166f5ca537aca7b8beff2b (patch)
tree1efd2347dcbfb7b9894853dfbf52875f12fa5e04 /sys/ia64/include/md_var.h
parentf058ad603616156ddb87113551b184875a1640e2 (diff)
downloadFreeBSD-src-c3bdd669c3f39a9ac1166f5ca537aca7b8beff2b.zip
FreeBSD-src-c3bdd669c3f39a9ac1166f5ca537aca7b8beff2b.tar.gz
Change hw.physmem and hw.usermem to unsigned long like they used to be
in the original hardwired sysctl implementation. The buf size calculator still overflows an integer on machines with large KVA (eg: ia64) where the number of pages does not fit into an int. Use 'long' there. Change Maxmem and physmem and related variables to 'long', mostly for completeness. Machines are not likely to overflow 'int' pages in the near term, but then again, 640K ought to be enough for anybody. This comes for free on 32 bit machines, so why not?
Diffstat (limited to 'sys/ia64/include/md_var.h')
-rw-r--r--sys/ia64/include/md_var.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/include/md_var.h b/sys/ia64/include/md_var.h
index 75eab8b..706294f 100644
--- a/sys/ia64/include/md_var.h
+++ b/sys/ia64/include/md_var.h
@@ -36,7 +36,7 @@
extern char sigcode[];
extern char esigcode[];
extern int szsigcode;
-extern int Maxmem;
+extern long Maxmem;
struct fpreg;
struct thread;
OpenPOWER on IntegriCloud