Changeset 6e2bf29 in mainline for kernel/arch/ppc32/src/mm/page.c


Ignore:
Timestamp:
2010-05-31T19:09:07Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b0b2ac1
Parents:
e3ce39b
Message:

Lock the page tables before working with them on ppc32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/mm/page.c

    re3ce39b r6e2bf29  
    5454        uintptr_t virtaddr = PA2KA(last_frame);
    5555        pfn_t i;
     56        page_table_lock(AS_KERNEL, true);
    5657        for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++)
    5758                page_mapping_insert(AS_KERNEL, virtaddr + PFN2ADDR(i),
    5859                    physaddr + PFN2ADDR(i), PAGE_NOT_CACHEABLE | PAGE_WRITE);
     60        page_table_unlock(AS_KERNEL, true);
    5961       
    6062        last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
Note: See TracChangeset for help on using the changeset viewer.