summaryrefslogtreecommitdiffstats
path: root/arch/mn10300/include/uapi/asm/mman.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mn10300/include/uapi/asm/mman.h')
-rw-r--r--arch/mn10300/include/uapi/asm/mman.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mn10300/include/uapi/asm/mman.h b/arch/mn10300/include/uapi/asm/mman.h
new file mode 100644
index 00000000000..db5c53da73c
--- /dev/null
+++ b/arch/mn10300/include/uapi/asm/mman.h
@@ -0,0 +1,6 @@
+#include <asm-generic/mman.h>
+
+#define MIN_MAP_ADDR PAGE_SIZE /* minimum fixed mmap address */
+
+#define arch_mmap_check(addr, len, flags) \
+ (((flags) & MAP_FIXED && (addr) < MIN_MAP_ADDR) ? -EINVAL : 0)