Skip to contentSkip to conversation

use mmap to allocate execute memory

PATCH Applied Christoph Egger 3 participants 4 messages Jun 17, 2011 – Aug 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use mmap to allocate execute memory

Use mmap to allocate executable memory on NetBSD as well.

From: Tobias Nygren <[email protected]>

exec.c +2 -1
index 09928a3..1954a1c 100644
@@ -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;
Signature · 6 lines
---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
#1 lore raw
Quoted 11 lines · Christoph Egger

Use mmap to allocate executable memory on NetBSD as well.

From: Tobias Nygren <[email protected]>

exec.c +0 -0
index 09928a3..1954a1c 100644

exec.c static void code_gen_alloc(unsigned long tb_size) · line 523

Quoted 4 lines
exec.c +0 -1
@@ -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

Quoted 7 lines
exec.c +2 -0
+ || defined(__DragonFly__) || defined(__OpenBSD__) \
+ || defined(__NetBSD__)
 {
 int flags;
 void *addr = NULL;
#2 lore raw
Quoted 7 lines · Anthony Liguori
Quoted 6 lines · Christoph Egger

Use mmap to allocate executable memory on NetBSD as well.

From: Tobias Nygren<[email protected]>

Quoted 11 lines

exec.c static void code_gen_alloc(unsigned long tb_size) · line 523

Quoted 9 lines
exec.c +0 -1
index 09928a3..1954a1c 100644
@@ -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 <[email protected]>

Signature · 6 lines
---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
exec.c +2 -1
index 09928a3..1954a1c 100644
@@ -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;
Applied
#3 lore raw

Thanks, applied.

Quoted 41 lines · Christoph Egger
Quoted 8 lines · Anthony Liguori
Quoted 6 lines · Christoph Egger

Use mmap to allocate executable memory on NetBSD as well.

From: Tobias Nygren<[email protected]>

Quoted 11 lines

exec.c static void code_gen_alloc(unsigned long tb_size) · line 523

Quoted 9 lines
exec.c +0 -1
index 09928a3..1954a1c 100644
@@ -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 <[email protected]>

--
---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