diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-11 21:48:59 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-11 21:48:59 +0000 |
commit | 859c2147629b7fddb1188afcf3deccd6dda2cae9 (patch) | |
tree | e085d1453a10fee3d9d339c45d395800478e4846 /exec.c | |
parent | 20923bd523d3e53da22bf16822c74a8a8b0aebfd (diff) | |
download | qemu-859c2147629b7fddb1188afcf3deccd6dda2cae9.tar.gz qemu-859c2147629b7fddb1188afcf3deccd6dda2cae9.tar.bz2 qemu-859c2147629b7fddb1188afcf3deccd6dda2cae9.zip |
Define OS-dependent qemu_getpagesize() (Hollis Blanchard)
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5701 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -231,16 +231,7 @@ static void page_init(void) { /* NOTE: we can always suppose that qemu_host_page_size >= TARGET_PAGE_SIZE */ -#ifdef _WIN32 - { - SYSTEM_INFO system_info; - - GetSystemInfo(&system_info); - qemu_real_host_page_size = system_info.dwPageSize; - } -#else - qemu_real_host_page_size = getpagesize(); -#endif + qemu_real_host_page_size = qemu_getpagesize(); if (qemu_host_page_size == 0) qemu_host_page_size = qemu_real_host_page_size; if (qemu_host_page_size < TARGET_PAGE_SIZE) |