projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac35ee4
)
get_unmapped_area handles MAP_FIXED on x86_64
author
Benjamin Herrenschmidt
<
[email protected]
>
Sun, 6 May 2007 21:50:11 +0000
(14:50 -0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 7 May 2007 19:12:56 +0000
(12:12 -0700)
Handle MAP_FIXED in x86_64 arch_get_unmapped_area(), simple case, just return
the address as passed in
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
Cc: Andi Kleen <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/x86_64/kernel/sys_x86_64.c
patch
|
blob
|
history
diff --git
a/arch/x86_64/kernel/sys_x86_64.c
b/arch/x86_64/kernel/sys_x86_64.c
index 76bf7c241fe410fdd676b17c6bce41143293a883..f891931eb753d74d6d8b563faf448fb0edd5e0ba 100644
(file)
--- 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)