summaryrefslogtreecommitdiffstats
path: root/arch/mn10300/include
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2009-11-30 17:00:51 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2009-12-11 06:34:10 -0500
commit564b3bffc619dcbdd160de597b0547a7017ea010 (patch)
treeb6980ff0a3d74a7834fd6332a3c85d2c8d6ac81b /arch/mn10300/include
parent570dcf2c15463842e384eb597a87c1e39bead99b (diff)
downloadkernel-crypto-564b3bffc619dcbdd160de597b0547a7017ea010.tar.gz
kernel-crypto-564b3bffc619dcbdd160de597b0547a7017ea010.tar.xz
kernel-crypto-564b3bffc619dcbdd160de597b0547a7017ea010.zip
arch_mmap_check() on mn10300
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/mn10300/include')
-rw-r--r--arch/mn10300/include/asm/mman.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mn10300/include/asm/mman.h b/arch/mn10300/include/asm/mman.h
index 8eebf89f5ab..db5c53da73c 100644
--- a/arch/mn10300/include/asm/mman.h
+++ b/arch/mn10300/include/asm/mman.h
@@ -1 +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)