diff options
author | tnn <tnn> | 2009-08-31 14:34:07 +0000 |
---|---|---|
committer | tnn <tnn> | 2009-08-31 14:34:07 +0000 |
commit | 27be7ec34ee9c493c2b0e2f900ce7b20ea484943 (patch) | |
tree | f3a06d4369fe50a5597c3d6afced6ca6a335258a /emulators/qemu/patches | |
parent | e839a6ccbfecb7857326630b1fc0956b5c3f1fcf (diff) | |
download | pkgsrc-27be7ec34ee9c493c2b0e2f900ce7b20ea484943.tar.gz |
use mmap to allocate the VM memory as well
Diffstat (limited to 'emulators/qemu/patches')
-rw-r--r-- | emulators/qemu/patches/patch-dg | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/emulators/qemu/patches/patch-dg b/emulators/qemu/patches/patch-dg index 3a7c293a33c..89522cce633 100644 --- a/emulators/qemu/patches/patch-dg +++ b/emulators/qemu/patches/patch-dg @@ -1,13 +1,13 @@ -$NetBSD: patch-dg,v 1.1 2009/08/31 10:18:49 hasso Exp $ +$NetBSD: patch-dg,v 1.2 2009/08/31 14:34:07 tnn Exp $ ---- osdep.c.orig 2009-07-17 03:56:24 +0300 -+++ osdep.c 2009-08-30 15:59:25 +0300 +--- osdep.c.orig 2009-07-17 02:56:24.000000000 +0200 ++++ osdep.c @@ -90,7 +90,7 @@ static void *kqemu_vmalloc(size_t size) void *ptr; /* no need (?) for a dummy file on OpenBSD/FreeBSD */ -#if defined(__OpenBSD__) || defined(__FreeBSD__) -+#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) ++#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) int map_anon = MAP_ANON; #else int map_anon = 0; @@ -16,7 +16,7 @@ $NetBSD: patch-dg,v 1.1 2009/08/31 10:18:49 hasso Exp $ size = (size + 4095) & ~4095; ftruncate(phys_ram_fd, phys_ram_size + size); -#endif /* !(__OpenBSD__ || __FreeBSD__) */ -+#endif /* !(__OpenBSD__ || __FreeBSD__ || __DragonFly__) */ ++#endif /* !(__OpenBSD__ || __FreeBSD__ || __DragonFly__ || __NetBSD__) */ ptr = mmap(NULL, size, PROT_WRITE | PROT_READ, map_anon | MAP_SHARED, |