Ignore:
File:
1 edited

Legend:

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

    rf1fc83a 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;
    5957        /* Kernel identity mapping */
    60         for (cur = PHYSMEM_START_ADDR; cur < last_frame; cur += FRAME_SIZE)
     58        for (cur = 0; cur < last_frame; cur += FRAME_SIZE)
    6159                page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags);
    6260       
     
    6866#error "Only high exception vector supported now"
    6967#endif
    70         cur = ALIGN_DOWN(0x50008010, FRAME_SIZE);
    71         page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags);
    72 
    73         page_table_unlock(AS_KERNEL, true);
    7468       
    7569        as_switch(NULL, AS_KERNEL);
     
    9892        uintptr_t virtaddr = PA2KA(last_frame);
    9993        pfn_t i;
    100 
    101         page_table_lock(AS_KERNEL, true);
    10294        for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) {
    10395                page_mapping_insert(AS_KERNEL, virtaddr + PFN2ADDR(i),
     
    10597                    PAGE_NOT_CACHEABLE | PAGE_READ | PAGE_WRITE | PAGE_KERNEL);
    10698        }
    107         page_table_unlock(AS_KERNEL, true);
    10899       
    109100        last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
Note: See TracChangeset for help on using the changeset viewer.