aboutsummaryrefslogtreecommitdiff
path: root/osdep.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-22 20:45:18 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-04-22 20:45:18 +0000
commit03875444d95a679cc0191a314be2238423b77cff (patch)
tree53527bd5dee159303194d62195db87983693dd23 /osdep.c
parent0ba5f006bb143ea5ef5cac1746f52bbbf529c836 (diff)
downloadqemu-03875444d95a679cc0191a314be2238423b77cff.zip
qemu-03875444d95a679cc0191a314be2238423b77cff.tar.gz
qemu-03875444d95a679cc0191a314be2238423b77cff.tar.bz2
Revert "Use correct types to enable > 2G support" (r4238), it is
not yet ready. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4240 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'osdep.c')
-rw-r--r--osdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep.c b/osdep.c
index 46434af..ae7e3fb 100644
--- a/osdep.c
+++ b/osdep.c
@@ -98,6 +98,7 @@ static void *kqemu_vmalloc(size_t size)
int64_t free_space;
int ram_mb;
+ extern int ram_size;
free_space = (int64_t)stfs.f_bavail * stfs.f_bsize;
if ((ram_size + 8192 * 1024) >= free_space) {
ram_mb = (ram_size / (1024 * 1024));