Changeset 00287cc in mainline for kernel/arch/arm32/src/mm/page.c


Ignore:
Timestamp:
2009-03-12T23:26:32Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
648c9d9
Parents:
3b122e9
Message:

arm32: update for the new scheme of device drivers and keyboard/serial modules
streamline arm32 port (as GXemul is still the only machine supported), more cleanup is needed

File:
1 edited

Legend:

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

    r3b122e9 r00287cc  
    5252void page_arch_init(void)
    5353{
     54        int flags = PAGE_CACHEABLE;
     55        page_mapping_operations = &pt_mapping_operations;
     56       
    5457        uintptr_t cur;
    55         int flags;
    56 
    57         page_mapping_operations = &pt_mapping_operations;
    58 
    59         flags = PAGE_CACHEABLE;
    60 
    61         /* PA2KA(identity) mapping for all frames until last_frame */
    62         for (cur = 0; cur < last_frame; cur += FRAME_SIZE) {
     58        /* Kernel identity mapping */
     59        for (cur = 0; cur < last_frame; cur += FRAME_SIZE)
    6360                page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags);
    64         }
    6561       
    66         /* create mapping for exception table at high offset */
     62        /* Create mapping for exception table at high offset */
    6763#ifdef HIGH_EXCEPTION_VECTORS
    6864        void *virtaddr = frame_alloc(ONE_FRAME, FRAME_KA);
     
    7167#error "Only high exception vector supported now"
    7268#endif
    73 
     69       
    7470        as_switch(NULL, AS_KERNEL);
    75 
     71       
    7672        boot_page_table_free();
    7773}
     
    9490                    physaddr, size)
    9591        }
    96 
     92       
    9793        uintptr_t virtaddr = PA2KA(last_frame);
    9894        pfn_t i;
     
    10298                    PAGE_NOT_CACHEABLE | PAGE_READ | PAGE_WRITE | PAGE_KERNEL);
    10399        }
    104 
     100       
    105101        last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
    106102        return virtaddr;
Note: See TracChangeset for help on using the changeset viewer.