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

Changeset 1ccd0aa in mainline


Ignore:
Timestamp:
2012-01-27T22:41:06Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
221c9ec
Parents:
adec5b45
Message:

Use km_map() in km_temporary_page_get().

File:
1 edited

Legend:

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

    radec5b45 r1ccd0aa  
    190190            FRAME_HIGHMEM | FRAME_ATOMIC | flags);
    191191        if (frame) {
    192                 page = km_page_alloc(PAGE_SIZE, PAGE_SIZE);
     192                page = km_map(frame, PAGE_SIZE,
     193                    PAGE_READ | PAGE_WRITE | PAGE_CACHEABLE);
    193194                ASSERT(page);   // FIXME
    194                 page_table_lock(AS_KERNEL, true);
    195                 page_mapping_insert(AS_KERNEL, page, frame,
    196                     PAGE_CACHEABLE | PAGE_READ | PAGE_WRITE);
    197                 page_table_unlock(AS_KERNEL, true);
    198195        } else {
    199196                frame = (uintptr_t) frame_alloc_noreserve(ONE_FRAME,
Note: See TracChangeset for help on using the changeset viewer.