summaryrefslogtreecommitdiffstats
path: root/sys/i386/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/i386/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/i386/include/md_var.h')
-rw-r--r--sys/i386/include/md_var.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/include/md_var.h b/sys/i386/include/md_var.h
index 203f45c..f449c04 100644
--- a/sys/i386/include/md_var.h
+++ b/sys/i386/include/md_var.h
@@ -36,7 +36,7 @@
* Miscellaneous machine-dependent declarations.
*/
-extern int Maxmem;
+extern long Maxmem;
extern u_int atdevbase; /* offset in virtual memory of ISA io mem */
extern void (*bcopy_vector)(const void *from, void *to, size_t len);
extern int busdma_swi_pending;
OpenPOWER on IntegriCloud