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