Changes in kernel/generic/src/mm/km.c [1066041:c387838] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/km.c
r1066041 rc387838 49 49 #include <macros.h> 50 50 #include <bitops.h> 51 #include <proc/thread.h>52 51 53 52 static ra_arena_t *km_ni_arena; … … 234 233 * @param[inout] framep Pointer to a variable which will receive the physical 235 234 * address of the allocated frame. 236 * @param[in] flags Frame allocation flags. FRAME_NONE or FRAME_NO_RESERVE. 235 * @param[in] flags Frame allocation flags. FRAME_NONE, FRAME_NO_RESERVE 236 * and FRAME_ATOMIC bits are allowed. 237 237 * @return Virtual address of the allocated frame. 238 238 */ … … 244 244 ASSERT(THREAD); 245 245 ASSERT(framep); 246 ASSERT(!(flags & ~ FRAME_NO_RESERVE));246 ASSERT(!(flags & ~(FRAME_NO_RESERVE | FRAME_ATOMIC))); 247 247 248 248 /* … … 256 256 ASSERT(page); // FIXME 257 257 } else { 258 frame = (uintptr_t) frame_alloc_noreserve(ONE_FRAME, 259 FRAME_LOWMEM); 258 frame = (uintptr_t) frame_alloc(ONE_FRAME, 259 FRAME_LOWMEM | flags); 260 if (!frame) 261 return (uintptr_t) NULL; 260 262 page = PA2KA(frame); 261 263 }
Note:
See TracChangeset
for help on using the changeset viewer.