Skip to contentSkip to conversation

qemu fixes

PATCH Applied Christoph Egger 2 participants 2 messages Nov 28, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 3/6 qemu fixes

Hi,

This is a series of four patches which improve support for qemu on NetBSD.

Attached patch makes bsd-user compiling on NetBSD. NetBSD doesn't have MAP_FLAGMASK.

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
mmap.c +4 -0
Index: bsd-user/mmap.c
===================================================================
@@ -30,6 +30,10 @@
 
 //#define DEBUG_MMAP
 
+#ifndef MAP_FLAGMASK
+#define MAP_FLAGMASK	~MAP_ALIGNMENT_MASK
+#endif
+
 #if defined(USE_NPTL)
 pthread_mutex_t mmap_mutex;
 static int __thread mmap_lock_count;
#1 lore raw
Quoted 9 lines · Christoph Egger

Hi,

This is a series of four patches which improve support for qemu on NetBSD.

Attached patch makes bsd-user compiling on NetBSD.
NetBSD doesn't have MAP_FLAGMASK.

I'll try to make a real fix that removes the dependency to system flags.