Changes in kernel/generic/src/ddi/ddi.c [a17cced:f72906c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ddi/ddi.c
ra17cced rf72906c 121 121 backend_data.base = phys; 122 122 backend_data.frames = pages; 123 backend_data.anonymous = false;124 123 125 124 /* … … 330 329 331 330 size_t frames = SIZE2FRAMES(size); 332 *phys = frame_alloc(frames, FRAME_ ATOMIC, constraint);331 *phys = frame_alloc(frames, FRAME_NO_RESERVE, constraint); 333 332 if (*phys == 0) 334 333 return ENOMEM; … … 337 336 backend_data.base = *phys; 338 337 backend_data.frames = frames; 339 backend_data.anonymous = true;340 338 341 339 if (!as_area_create(TASK->as, map_flags, size, 342 340 AS_AREA_ATTR_NONE, &phys_backend, &backend_data, virt, bound)) { 343 frame_free (*phys, frames);341 frame_free_noreserve(*phys, frames); 344 342 return ENOMEM; 345 343 } … … 356 354 NO_TRACE static int dmamem_unmap_anonymous(uintptr_t virt) 357 355 { 358 return as_area_destroy(TASK->as, virt); 356 // TODO: implement unlocking & unmap 357 return EOK; 359 358 } 360 359
Note:
See TracChangeset
for help on using the changeset viewer.