Changeset c101dc0 in mainline
- Timestamp:
- 2014-02-03T08:01:45Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a17cced
- Parents:
- 0dd022ec
- Location:
- kernel/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/as.h
r0dd022ec rc101dc0 169 169 uintptr_t base; 170 170 size_t frames; 171 bool anonymous; 171 172 }; 172 173 } mem_backend_data_t; -
kernel/generic/src/ddi/ddi.c
r0dd022ec rc101dc0 121 121 backend_data.base = phys; 122 122 backend_data.frames = pages; 123 backend_data.anonymous = false; 123 124 124 125 /* … … 336 337 backend_data.base = *phys; 337 338 backend_data.frames = frames; 339 backend_data.anonymous = true; 338 340 339 341 if (!as_area_create(TASK->as, map_flags, size, … … 354 356 NO_TRACE static int dmamem_unmap_anonymous(uintptr_t virt) 355 357 { 356 // TODO: implement unlocking & unmap 357 return EOK; 358 return as_area_destroy(TASK->as, virt); 358 359 } 359 360 -
kernel/generic/src/mm/backend_phys.c
r0dd022ec rc101dc0 92 92 void phys_destroy(as_area_t *area) 93 93 { 94 /* Nothing to do. */ 94 mem_backend_data_t *data = &area->backend_data; 95 96 if (data->anonymous) 97 frame_free_noreserve(data->base, data->frames); 95 98 } 96 99
Note:
See TracChangeset
for help on using the changeset viewer.