Ignore:
File:
1 edited

Legend:

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

    r2c0b348 r9d58539  
    336336                order = fnzb(pages - 1) + 1;
    337337       
    338         *phys = frame_alloc_noreserve(order, FRAME_DMA);
     338        *phys = frame_alloc_noreserve(order, 0);
    339339        if (*phys == NULL)
    340340                return ENOMEM;
     
    361361NO_TRACE static int dmamem_unmap_anonymous(uintptr_t virt)
    362362{
    363         // TODO: This is an ugly hack
    364         as_t *as = TASK->as;
    365 
    366         mutex_lock(&as->lock);
    367         as_area_t *area = find_locked_area(as, virt);
    368         if (!area) {
    369                 mutex_unlock(&as->lock);
    370                 return ENOENT;
    371         }
    372         frame_free_noreserve(area->backend_data.base);
    373         area->backend_data.base = 0;
    374         area->backend_data.frames = 0;
    375         mutex_unlock(&area->lock);
    376         mutex_unlock(&as->lock);
    377 
    378         return as_area_destroy(as, virt);
     363        // TODO: implement unlocking & unmap
     364        return EOK;
    379365}
    380366
Note: See TracChangeset for help on using the changeset viewer.