[Qemu-devel] [PATCH] use mmap to allocate execute memory
Use mmap to allocate executable memory on NetBSD as well. From: Tobias Nygren Signed-off-by: Christoph Egger 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
Re: [Qemu-devel] [PATCH] use mmap to allocate execute memory
On 06/17/2011 05:11 AM, Christoph Egger wrote: Use mmap to allocate executable memory on NetBSD as well. From: Tobias Nygren Signed-off-by: Christoph Egger 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__) Your mailer munged this patch. Regards, Anthony Liguori + || defined(__DragonFly__) || defined(__OpenBSD__) \ + || defined(__NetBSD__) { int flags; void *addr = NULL;
Re: [Qemu-devel] [PATCH] use mmap to allocate execute memory
On 07/23/11 18:17, Anthony Liguori wrote: On 06/17/2011 05:11 AM, Christoph Egger wrote: Use mmap to allocate executable memory on NetBSD as well. From: Tobias Nygren Signed-off-by: Christoph Egger 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__) Your mailer munged this patch. ... or by the MS Exchange Server. Resending the patch as attachment, the only one way I have that works for everyone. Sorry. Use mmap to allocate executable memory on NetBSD as well. From: Tobias Nygren Signed-off-by: Christoph Egger -- ---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 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;
Re: [Qemu-devel] [PATCH] use mmap to allocate execute memory
Thanks, applied. On Mon, Jul 25, 2011 at 9:05 AM, Christoph Egger wrote: > On 07/23/11 18:17, Anthony Liguori wrote: >> >> On 06/17/2011 05:11 AM, Christoph Egger wrote: >>> >>> Use mmap to allocate executable memory on NetBSD as well. >>> >>> From: Tobias Nygren >>> Signed-off-by: Christoph Egger >>> >>> 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__) >> >> Your mailer munged this patch. > > ... or by the MS Exchange Server. > > Resending the patch as attachment, the only one > way I have that works for everyone. Sorry. > > > Use mmap to allocate executable memory on NetBSD as well. > > From: Tobias Nygren > Signed-off-by: Christoph Egger > > > -- > ---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 >