From 0e10f740069c2d805d3199a8079b73e828c7d8d9 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Thu, 6 Dec 2012 01:20:48 +0100 Subject: [PATCH] add MAP_NORESERVE to bits/mman.h this is needed for qemu, and since it differs for each arch it can't be circumvented easily by using a macro in CFLAGS. --- arch/arm/bits/mman.h | 1 + arch/i386/bits/mman.h | 1 + arch/microblaze/bits/mman.h | 1 + arch/mips/bits/mman.h | 1 + arch/powerpc/bits/mman.h | 1 + arch/x86_64/bits/mman.h | 1 + 6 files changed, 6 insertions(+) diff --git a/arch/arm/bits/mman.h b/arch/arm/bits/mman.h index 03f961e8..bc8f37c8 100644 --- a/arch/arm/bits/mman.h +++ b/arch/arm/bits/mman.h @@ -16,6 +16,7 @@ #define MAP_ANON 0x20 #define MAP_ANONYMOUS MAP_ANON #define MAP_32BIT 0x40 +#define MAP_NORESERVE 0x4000 #define POSIX_MADV_NORMAL 0 #define POSIX_MADV_RANDOM 1 diff --git a/arch/i386/bits/mman.h b/arch/i386/bits/mman.h index 03f961e8..bc8f37c8 100644 --- a/arch/i386/bits/mman.h +++ b/arch/i386/bits/mman.h @@ -16,6 +16,7 @@ #define MAP_ANON 0x20 #define MAP_ANONYMOUS MAP_ANON #define MAP_32BIT 0x40 +#define MAP_NORESERVE 0x4000 #define POSIX_MADV_NORMAL 0 #define POSIX_MADV_RANDOM 1 diff --git a/arch/microblaze/bits/mman.h b/arch/microblaze/bits/mman.h index 03f961e8..bc8f37c8 100644 --- a/arch/microblaze/bits/mman.h +++ b/arch/microblaze/bits/mman.h @@ -16,6 +16,7 @@ #define MAP_ANON 0x20 #define MAP_ANONYMOUS MAP_ANON #define MAP_32BIT 0x40 +#define MAP_NORESERVE 0x4000 #define POSIX_MADV_NORMAL 0 #define POSIX_MADV_RANDOM 1 diff --git a/arch/mips/bits/mman.h b/arch/mips/bits/mman.h index f40e451d..f99a2109 100644 --- a/arch/mips/bits/mman.h +++ b/arch/mips/bits/mman.h @@ -15,6 +15,7 @@ #define MAP_FILE 0x00 #define MAP_ANON 0x800 #define MAP_ANONYMOUS MAP_ANON +#define MAP_NORESERVE 0x0400 #define POSIX_MADV_NORMAL 0 #define POSIX_MADV_RANDOM 1 diff --git a/arch/powerpc/bits/mman.h b/arch/powerpc/bits/mman.h index 03f961e8..b6014c1a 100644 --- a/arch/powerpc/bits/mman.h +++ b/arch/powerpc/bits/mman.h @@ -16,6 +16,7 @@ #define MAP_ANON 0x20 #define MAP_ANONYMOUS MAP_ANON #define MAP_32BIT 0x40 +#define MAP_NORESERVE 0x40 #define POSIX_MADV_NORMAL 0 #define POSIX_MADV_RANDOM 1 diff --git a/arch/x86_64/bits/mman.h b/arch/x86_64/bits/mman.h index 80ed39fa..78ed75f5 100644 --- a/arch/x86_64/bits/mman.h +++ b/arch/x86_64/bits/mman.h @@ -16,6 +16,7 @@ #define MAP_ANON 0x20 #define MAP_ANONYMOUS MAP_ANON #define MAP_32BIT 0x40 +#define MAP_NORESERVE 0x4000 #define POSIX_MADV_NORMAL 0 #define POSIX_MADV_RANDOM 1 -- 2.25.1