Subversion Repositories HelenOS

Rev

Rev 3742 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3742 Rev 3993
Line 1893... Line 1893...
1893
 
1893
 
1894
/** Wrapper for as_area_create(). */
1894
/** Wrapper for as_area_create(). */
1895
unative_t sys_as_area_create(uintptr_t address, size_t size, int flags)
1895
unative_t sys_as_area_create(uintptr_t address, size_t size, int flags)
1896
{
1896
{
1897
    if (as_area_create(AS, flags | AS_AREA_CACHEABLE, size, address,
1897
    if (as_area_create(AS, flags | AS_AREA_CACHEABLE, size, address,
1898
        AS_AREA_ATTR_NONE, &anon_backend, NULL))
1898
        AS_AREA_ATTR_NONE, &anon_backend, NULL)) {
1899
        return (unative_t) address;
1899
        return (unative_t) address;
1900
    else
1900
    } else {
1901
        return (unative_t) -1;
1901
        return (unative_t) -1;
-
 
1902
    }
1902
}
1903
}
1903
 
1904
 
1904
/** Wrapper for as_area_resize(). */
1905
/** Wrapper for as_area_resize(). */
1905
unative_t sys_as_area_resize(uintptr_t address, size_t size, int flags)
1906
unative_t sys_as_area_resize(uintptr_t address, size_t size, int flags)
1906
{
1907
{