Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/km.c

    rc387838 r1066041  
    4949#include <macros.h>
    5050#include <bitops.h>
     51#include <proc/thread.h>
    5152
    5253static ra_arena_t *km_ni_arena;
     
    233234 * @param[inout] framep Pointer to a variable which will receive the physical
    234235 *                      address of the allocated frame.
    235  * @param[in] flags     Frame allocation flags. FRAME_NONE, FRAME_NO_RESERVE
    236  *                      and FRAME_ATOMIC bits are allowed.
     236 * @param[in] flags     Frame allocation flags. FRAME_NONE or FRAME_NO_RESERVE.
    237237 * @return              Virtual address of the allocated frame.
    238238 */
     
    244244        ASSERT(THREAD);
    245245        ASSERT(framep);
    246         ASSERT(!(flags & ~(FRAME_NO_RESERVE | FRAME_ATOMIC)));
     246        ASSERT(!(flags & ~FRAME_NO_RESERVE));
    247247
    248248        /*
     
    256256                ASSERT(page);   // FIXME
    257257        } else {
    258                 frame = (uintptr_t) frame_alloc(ONE_FRAME,
    259                     FRAME_LOWMEM | flags);
    260                 if (!frame)
    261                         return (uintptr_t) NULL;
     258                frame = (uintptr_t) frame_alloc_noreserve(ONE_FRAME,
     259                    FRAME_LOWMEM);
    262260                page = PA2KA(frame);
    263261        }
Note: See TracChangeset for help on using the changeset viewer.