summaryrefslogtreecommitdiff
path: root/emulators/qemu
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2009-08-31 14:34:07 +0000
committertnn <tnn@pkgsrc.org>2009-08-31 14:34:07 +0000
commit655e57f3cb3ee2f4ea2725fa525cb2da3fe1a5d0 (patch)
treef3a06d4369fe50a5597c3d6afced6ca6a335258a /emulators/qemu
parenta10bbe2b7fce6cbedd17c20e04f9e5bf67018c84 (diff)
downloadpkgsrc-655e57f3cb3ee2f4ea2725fa525cb2da3fe1a5d0.tar.gz
use mmap to allocate the VM memory as well
Diffstat (limited to 'emulators/qemu')
-rw-r--r--emulators/qemu/distinfo4
-rw-r--r--emulators/qemu/patches/patch-dg10
2 files changed, 7 insertions, 7 deletions
diff --git a/emulators/qemu/distinfo b/emulators/qemu/distinfo
index e9889918907..b409a58ecb1 100644
--- a/emulators/qemu/distinfo
+++ b/emulators/qemu/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.45 2009/08/31 14:30:50 tnn Exp $
+$NetBSD: distinfo,v 1.46 2009/08/31 14:34:07 tnn Exp $
SHA1 (qemu-0.10.6.tar.gz) = 9432738ba513e07c981097468945b2e3ad9cb81e
RMD160 (qemu-0.10.6.tar.gz) = 1321a10777d2e0c6b53887d0525a28cc1b36ec9b
@@ -13,7 +13,7 @@ SHA1 (patch-dc) = 508d40a99242ba025ade0d067e6d44d3a8a4f0cc
SHA1 (patch-dd) = 98133e7526441ddea5647c006f146474fcd59826
SHA1 (patch-de) = 14f6598f5467c4dfbea729ca2f4adcf6fe1144be
SHA1 (patch-df) = f21a7832e2cc94dbe76626b74455d33f5ca50ee5
-SHA1 (patch-dg) = f315471d1353504e8bb0032cdf019634c3ce88a5
+SHA1 (patch-dg) = 784fc32c7a93ec154b99f312db16aba9e950122a
SHA1 (patch-dh) = c4c1882c81cdbe9d98fc50e8f60f8d233a7882c5
SHA1 (patch-di) = 96552e11794deb726cc027c41e06a378510ef534
SHA1 (patch-dj) = 78b2cc5ba2360a7237de2207365547b84867d070
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,