Changeset 5c7be3e in mainline
- Timestamp:
- 2016-06-18T16:17:49Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6a66923
- Parents:
- 554e70f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/km.c
r554e70f r5c7be3e 248 248 */ 249 249 uintptr_t page; 250 uintptr_t frame = 251 frame_alloc(1, FRAME_HIGHMEM | FRAME_ATOMIC | flags, 0); 250 uintptr_t frame; 251 252 frame = frame_alloc(1, FRAME_HIGHMEM | FRAME_ATOMIC | flags, 0); 252 253 if (frame) { 253 254 page = km_map(frame, PAGE_SIZE, 254 255 PAGE_READ | PAGE_WRITE | PAGE_CACHEABLE); 255 256 // FIXME 257 ASSERT(page); 256 if (!page) { 257 frame_free(frame, 1); 258 goto lowmem; 259 } 258 260 } else { 261 lowmem: 259 262 frame = frame_alloc(1, FRAME_LOWMEM | flags, 0); 260 263 if (!frame)
Note:
See TracChangeset
for help on using the changeset viewer.