get_unmapped_area handles MAP_FIXED on x86_64
[linux-2.6.git] / arch / x86_64 / kernel / sys_x86_64.c
index 76bf7c2..f891931 100644 (file)
@@ -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)