Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ddi/ddi.c

    ra17cced rf72906c  
    121121        backend_data.base = phys;
    122122        backend_data.frames = pages;
    123         backend_data.anonymous = false;
    124123       
    125124        /*
     
    330329       
    331330        size_t frames = SIZE2FRAMES(size);
    332         *phys = frame_alloc(frames, FRAME_ATOMIC, constraint);
     331        *phys = frame_alloc(frames, FRAME_NO_RESERVE, constraint);
    333332        if (*phys == 0)
    334333                return ENOMEM;
     
    337336        backend_data.base = *phys;
    338337        backend_data.frames = frames;
    339         backend_data.anonymous = true;
    340338       
    341339        if (!as_area_create(TASK->as, map_flags, size,
    342340            AS_AREA_ATTR_NONE, &phys_backend, &backend_data, virt, bound)) {
    343                 frame_free(*phys, frames);
     341                frame_free_noreserve(*phys, frames);
    344342                return ENOMEM;
    345343        }
     
    356354NO_TRACE static int dmamem_unmap_anonymous(uintptr_t virt)
    357355{
    358         return as_area_destroy(TASK->as, virt);
     356        // TODO: implement unlocking & unmap
     357        return EOK;
    359358}
    360359
Note: See TracChangeset for help on using the changeset viewer.