All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] use mmap to allocate execute memory
@ 2011-06-17 10:11 Christoph Egger
  2011-07-23 16:17 ` Anthony Liguori
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2011-06-17 10:11 UTC (permalink / raw)
  To: qemu-devel


Use mmap to allocate executable memory on NetBSD as well.

From: Tobias Nygren <tnn@netbsd.org>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>

diff --git a/exec.c b/exec.c
index 09928a3..1954a1c 100644
--- a/exec.c
+++ b/exec.c
@@ -520,7 +520,8 @@ static void code_gen_alloc(unsigned long tb_size)
          }
      }
  #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
-    || defined(__DragonFly__) || defined(__OpenBSD__)
+    || defined(__DragonFly__) || defined(__OpenBSD__) \
+    || defined(__NetBSD__)
      {
          int flags;
          void *addr = NULL;


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-07  9:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-17 10:11 [Qemu-devel] [PATCH] use mmap to allocate execute memory Christoph Egger
2011-07-23 16:17 ` Anthony Liguori
2011-07-25  9:05   ` Christoph Egger
2011-08-07  9:58     ` Blue Swirl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.