diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2007-05-06 14:50:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 12:12:56 -0700 |
commit | 4b87b3b2eb1fa2d6ac0a1400ad5fb8f4b7cbfc09 (patch) | |
tree | c9e9a0b2e5074294f4b3b20d34c57c6fa028a1ae /arch/alpha | |
parent | d506a7725114aaddbf982fd18621b3e0e5c27f1b (diff) | |
download | linux-3.10-4b87b3b2eb1fa2d6ac0a1400ad5fb8f4b7cbfc09.tar.gz linux-3.10-4b87b3b2eb1fa2d6ac0a1400ad5fb8f4b7cbfc09.tar.bz2 linux-3.10-4b87b3b2eb1fa2d6ac0a1400ad5fb8f4b7cbfc09.zip |
get_unmapped_area handles MAP_FIXED on alpha
Handle MAP_FIXED in alpha's arch_get_unmapped_area(), simple case, just return
the address as passed in
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/alpha')
-rw-r--r-- | arch/alpha/kernel/osf_sys.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index be133f1f75a..67ae41dcb6f 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -1267,6 +1267,9 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr, if (len > limit) return -ENOMEM; + if (flags & MAP_FIXED) + return addr; + /* First, see if the given suggestion fits. The OSF/1 loader (/sbin/loader) relies on us returning an |