pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/qemu use mmap to allocate the VM memory as well
details: https://anonhg.NetBSD.org/pkgsrc/rev/41f5a70c8d1e
branches: trunk
changeset: 398489:41f5a70c8d1e
user: tnn <tnn%pkgsrc.org@localhost>
date: Mon Aug 31 14:34:07 2009 +0000
description:
use mmap to allocate the VM memory as well
diffstat:
emulators/qemu/distinfo | 4 ++--
emulators/qemu/patches/patch-dg | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (48 lines):
diff -r 44d48a6de40d -r 41f5a70c8d1e emulators/qemu/distinfo
--- a/emulators/qemu/distinfo Mon Aug 31 14:31:11 2009 +0000
+++ b/emulators/qemu/distinfo Mon Aug 31 14:34:07 2009 +0000
@@ -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-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 -r 44d48a6de40d -r 41f5a70c8d1e emulators/qemu/patches/patch-dg
--- a/emulators/qemu/patches/patch-dg Mon Aug 31 14:31:11 2009 +0000
+++ b/emulators/qemu/patches/patch-dg Mon Aug 31 14:34:07 2009 +0000
@@ -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 @@
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,
Home |
Main Index |
Thread Index |
Old Index