qemu fixes
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.
Signed-off-by Christoph Egger <[email protected]>
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
@@ -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;
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 haveMAP_FLAGMASK.
I'll try to make a real fix that removes the dependency to system flags.