Changeset 75b139f in mainline for kernel/generic/src/mm/as.c


Ignore:
Timestamp:
2016-08-28T13:42:19Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
519a97d
Parents:
f2c3fed
Message:

Add skeleton of the user backend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    rf2c3fed r75b139f  
    21862186{
    21872187        uintptr_t virt = base;
     2188        mem_backend_t *backend;
     2189        mem_backend_data_t backend_data;
     2190
     2191        if (pager == AS_AREA_UNPAGED)
     2192                backend = &anon_backend;
     2193        else {
     2194                backend = &user_backend;
     2195                backend_data.pager = pager;
     2196        }
    21882197        as_area_t *area = as_area_create(AS, flags, size,
    2189             AS_AREA_ATTR_NONE, &anon_backend, NULL, &virt, bound);
     2198            AS_AREA_ATTR_NONE, backend, &backend_data, &virt, bound);
    21902199        if (area == NULL)
    21912200                return (sysarg_t) AS_MAP_FAILED;
Note: See TracChangeset for help on using the changeset viewer.