diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2007-05-06 14:50:11 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 12:12:56 -0700 |
commit | 11300a64d08ebce03e30cac8eb58e8ce008e4bb7 (patch) | |
tree | fb62175d28d141b51d18b2e94fd109f1d4ee20a5 /arch/x86_64/kernel/sys_x86_64.c | |
parent | ac35ee484df361e1aed89873a458900693effdbe (diff) | |
download | kernel_samsung_espresso10-11300a64d08ebce03e30cac8eb58e8ce008e4bb7.zip kernel_samsung_espresso10-11300a64d08ebce03e30cac8eb58e8ce008e4bb7.tar.gz kernel_samsung_espresso10-11300a64d08ebce03e30cac8eb58e8ce008e4bb7.tar.bz2 |
get_unmapped_area handles MAP_FIXED on x86_64
Handle MAP_FIXED in x86_64 arch_get_unmapped_area(), simple case, just return
the address as passed in
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86_64/kernel/sys_x86_64.c')
-rw-r--r-- | arch/x86_64/kernel/sys_x86_64.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/sys_x86_64.c b/arch/x86_64/kernel/sys_x86_64.c index 76bf7c2..f891931 100644 --- a/arch/x86_64/kernel/sys_x86_64.c +++ b/arch/x86_64/kernel/sys_x86_64.c @@ -93,6 +93,9 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long start_addr; unsigned long begin, end; + if (flags & MAP_FIXED) + return addr; + find_start_end(flags, &begin, &end); if (len > end) |