Changes in kernel/generic/src/ddi/ddi.c [f72906c:a17cced] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ddi/ddi.c
rf72906c ra17cced 121 121 backend_data.base = phys; 122 122 backend_data.frames = pages; 123 backend_data.anonymous = false; 123 124 124 125 /* … … 329 330 330 331 size_t frames = SIZE2FRAMES(size); 331 *phys = frame_alloc(frames, FRAME_ NO_RESERVE, constraint);332 *phys = frame_alloc(frames, FRAME_ATOMIC, constraint); 332 333 if (*phys == 0) 333 334 return ENOMEM; … … 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, 340 342 AS_AREA_ATTR_NONE, &phys_backend, &backend_data, virt, bound)) { 341 frame_free _noreserve(*phys, frames);343 frame_free(*phys, frames); 342 344 return ENOMEM; 343 345 } … … 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
Note:
See TracChangeset
for help on using the changeset viewer.