Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a17cced in mainline


Ignore:
Timestamp:
2014-02-03T08:24:47Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
dbb29de
Parents:
c101dc0
Message:

dmamem_map_anonymous() should reserve the memory.

Location:
kernel/generic/src
Files:
2 edited

Legend:

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

    rc101dc0 ra17cced  
    330330       
    331331        size_t frames = SIZE2FRAMES(size);
    332         *phys = frame_alloc(frames, FRAME_NO_RESERVE, constraint);
     332        *phys = frame_alloc(frames, FRAME_ATOMIC, constraint);
    333333        if (*phys == 0)
    334334                return ENOMEM;
     
    341341        if (!as_area_create(TASK->as, map_flags, size,
    342342            AS_AREA_ATTR_NONE, &phys_backend, &backend_data, virt, bound)) {
    343                 frame_free_noreserve(*phys, frames);
     343                frame_free(*phys, frames);
    344344                return ENOMEM;
    345345        }
  • kernel/generic/src/mm/backend_phys.c

    rc101dc0 ra17cced  
    9595
    9696        if (data->anonymous)
    97                 frame_free_noreserve(data->base, data->frames);
     97                frame_free(data->base, data->frames);
    9898}
    9999
Note: See TracChangeset for help on using the changeset viewer.