Subversion Repositories HelenOS-historic

Rev

Rev 1505 | Rev 1518 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1505 Rev 1510
Line 36... Line 36...
36
    if (!start)
36
    if (!start)
37
        start = as_get_mappable_page(length);
37
        start = as_get_mappable_page(length);
38
   
38
   
39
    prot |= AS_AREA_CACHEABLE;
39
    prot |= AS_AREA_CACHEABLE;
40
   
40
   
41
    if (! ((flags & MAP_SHARED) ^ (flags & MAP_FIXED)))
41
//  if (! ((flags & MAP_SHARED) ^ (flags & MAP_PRIVATE)))
42
        return NULL;
42
//      return NULL;
43
    if (! (flags & MAP_ANONYMOUS))
43
//  if (! (flags & MAP_ANONYMOUS))
44
        return NULL;
44
//      return NULL;
45
 
45
 
46
    return as_area_create(start, length, prot);
46
    return as_area_create(start, length, prot);
47
}
47
}
48
 
48
 
49
int munmap(void *start, size_t length)
49
int munmap(void *start, size_t length)