Changeset de7663f in mainline for boot/arch/arm32/loader/mm.c


Ignore:
Timestamp:
2007-06-13T18:39:31Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
341140c
Parents:
c03ee1c
Message:

Remove some forgotten \r from arm32 files.
Formatting changes.
Add some correct BOOT_mips32_* guards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/loader/mm.c

    rc03ee1c rde7663f  
    4343 *  Will be readable/writable by kernel with no access from user mode.
    4444 *  Will belong to domain 0. No cache or buffering is enabled.
    45  *  
    46  *  @param pte    Section entry to initialize.
    47  *  @param frame  First frame in the section (frame number).
     45 *
     46 *  @param pte Section entry to initialize.
     47 *  @param frame First frame in the section (frame number).
    4848 *
    49  *  @note         If frame is not 1MB aligned, first lower 1MB aligned frame will be used.
    50  */   
    51 static void init_pte_level0_section(pte_level0_section_t* pte, unsigned int frame)
     49 *  @note If frame is not 1MB aligned, first lower 1MB aligned frame will be
     50 *      used.
     51 */
     52static void init_pte_level0_section(pte_level0_section_t* pte,
     53    unsigned int frame)
    5254{
    53         pte->descriptor_type   = PTE_DESCRIPTOR_SECTION;
    54         pte->bufferable        = 0;
    55         pte->cacheable         = 0;
    56         pte->impl_specific     = 0;
    57         pte->domain            = 0;
     55        pte->descriptor_type = PTE_DESCRIPTOR_SECTION;
     56        pte->bufferable = 0;
     57        pte->cacheable = 0;
     58        pte->impl_specific = 0;
     59        pte->domain = 0;
    5860        pte->should_be_zero_1  = 0;
    59         pte->access_permission = PTE_AP_USER_NO_KERNEL_RW;     
     61        pte->access_permission = PTE_AP_USER_NO_KERNEL_RW;
    6062        pte->should_be_zero_2  = 0;
    6163        pte->section_base_addr = frame;
    6264}
    63 
    6465
    6566/** Initializes page table used while booting the kernel. */
     
    6970        const unsigned int first_kernel_page = ADDR2PFN(PA2KA(0));
    7071
    71         // create 1:1 virtual-physical mapping (in lower 2GB)
     72        /* Create 1:1 virtual-physical mapping (in lower 2GB). */
    7273        for (i = 0; i < first_kernel_page; i++) {
    7374                init_pte_level0_section(&page_table[i], i);
    7475        }
    7576
    76         // create 1:1 virtual-physical mapping in kernel space (upper 2GB),
    77         // physical addresses start from 0
     77        /*
     78         * Create 1:1 virtual-physical mapping in kernel space (upper 2GB),
     79         * physical addresses start from 0.
     80         */
    7881        for (i = first_kernel_page; i < PTL0_ENTRIES; i++) {
    7982                init_pte_level0_section(&page_table[i], i - first_kernel_page);
    8083        }
    8184}
    82 
    8385
    8486/** Starts the MMU - initializes page table and enables paging. */
     
    8991}
    9092
    91 
    9293/** @}
    9394 */
    94  
     95
Note: See TracChangeset for help on using the changeset viewer.