Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=11300a64d08ebce03e30cac8eb58e8ce008e4bb7
Commit:     11300a64d08ebce03e30cac8eb58e8ce008e4bb7
Parent:     ac35ee484df361e1aed89873a458900693effdbe
Author:     Benjamin Herrenschmidt <[EMAIL PROTECTED]>
AuthorDate: Sun May 6 14:50:11 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon May 7 12:12:56 2007 -0700

    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 <[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 |    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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to