Ignore:
File:
1 edited

Legend:

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

    r3a2b636 rd99c1d2  
    5353        int flags = PAGE_CACHEABLE;
    5454        page_mapping_operations = &pt_mapping_operations;
    55 
    56         page_table_lock(AS_KERNEL, true);
    5755       
    5856        uintptr_t cur;
     
    6866#error "Only high exception vector supported now"
    6967#endif
    70 
    71         page_table_unlock(AS_KERNEL, true);
    7268       
    7369        as_switch(NULL, AS_KERNEL);
     
    9692        uintptr_t virtaddr = PA2KA(last_frame);
    9793        pfn_t i;
    98 
    99         page_table_lock(AS_KERNEL, true);
    10094        for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) {
    10195                page_mapping_insert(AS_KERNEL, virtaddr + PFN2ADDR(i),
     
    10397                    PAGE_NOT_CACHEABLE | PAGE_READ | PAGE_WRITE | PAGE_KERNEL);
    10498        }
    105         page_table_unlock(AS_KERNEL, true);
    10699       
    107100        last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
Note: See TracChangeset for help on using the changeset viewer.