diff options
Diffstat (limited to 'osdep.c')
-rw-r--r-- | osdep.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -66,6 +66,14 @@ void qemu_vfree(void *ptr) VirtualFree(ptr, 0, MEM_RELEASE); } +long qemu_getpagesize(void) +{ + SYSTEM_INFO system_info; + + GetSystemInfo(&system_info); + return system_info.dwPageSize; +} + #else #if defined(USE_KQEMU) @@ -190,6 +198,11 @@ void *qemu_memalign(size_t alignment, size_t size) #endif } +long qemu_getpagesize(void) +{ + return sysconf(_SC_PAGESIZE); +} + /* alloc shared memory pages */ void *qemu_vmalloc(size_t size) { |