diff options
author | Peter Wemm <peter@FreeBSD.org> | 2002-08-30 04:04:37 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2002-08-30 04:04:37 +0000 |
commit | 447b3772dc3a01e489e242783023e581868101a1 (patch) | |
tree | 1efd2347dcbfb7b9894853dfbf52875f12fa5e04 /sys/sys/buf.h | |
parent | d3ecac66174aa336a21cb9edbccebe75669b8b76 (diff) | |
download | src-447b3772dc3a01e489e242783023e581868101a1.tar.gz src-447b3772dc3a01e489e242783023e581868101a1.zip |
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?
Notes
Notes:
svn path=/head/; revision=102600
Diffstat (limited to 'sys/sys/buf.h')
-rw-r--r-- | sys/sys/buf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h index 04f4ebe4aa3a..17dfb40966e3 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -465,7 +465,7 @@ extern int nswbuf; /* Number of swap I/O buffer headers. */ struct uio; -caddr_t kern_vfs_bio_buffer_alloc(caddr_t v, int physmem_est); +caddr_t kern_vfs_bio_buffer_alloc(caddr_t v, long physmem_est); void bufinit(void); void bwillwrite(void); int buf_dirty_count_severe(void); |