Changes in boot/arch/arm32/src/mm.c [49a736e2:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/mm.c
r49a736e2 r9d58539 54 54 { 55 55 pte->descriptor_type = PTE_DESCRIPTOR_SECTION; 56 pte->bufferable = 1;56 pte->bufferable = 0; 57 57 pte->cacheable = 0; 58 pte-> xn= 0;58 pte->impl_specific = 0; 59 59 pte->domain = 0; 60 60 pte->should_be_zero_1 = 0; 61 pte->access_permission_0 = PTE_AP_USER_NO_KERNEL_RW; 62 pte->tex = 0; 63 pte->access_permission_1 = 0; 64 pte->non_global = 0; 61 pte->access_permission = PTE_AP_USER_NO_KERNEL_RW; 65 62 pte->should_be_zero_2 = 0; 66 pte->non_secure = 0;67 63 pte->section_base_addr = frame; 68 64 } … … 71 67 static void init_boot_pt(void) 72 68 { 73 const pfn_t split_page = PTL0_ENTRIES; 69 pfn_t split_page = 0x800; 70 74 71 /* Create 1:1 virtual-physical mapping (in lower 2 GB). */ 75 72 pfn_t page; … … 81 78 * (upper 2 GB), physical addresses start from 0. 82 79 */ 83 /* BeagleBoard-xM (MD37x) memory starts at 2GB border,84 * thus mapping only lower 2GB is not not enough.85 * Map entire AS 1:1 instead and hope it works. */86 80 for (page = split_page; page < PTL0_ENTRIES; page++) 87 #ifndef MACHINE_beagleboardxm88 81 init_ptl0_section(&boot_pt[page], page - split_page); 89 #else90 init_ptl0_section(&boot_pt[page], page);91 #endif92 82 93 83 asm volatile ( … … 105 95 /* Behave as a client of domains */ 106 96 "ldr r0, =0x55555555\n" 107 "mcr p15, 0, r0, c3, c0, 0\n" 97 "mcr p15, 0, r0, c3, c0, 0\n" 108 98 109 #ifdef PROCESSOR_armv7_a110 /* Read Auxiliary control register */111 "mrc p15, 0, r0, c1, c0, 1\n"112 /* Mask to enable L2 cache */113 "ldr r1, =0x00000002\n"114 "orr r0, r0, r1\n"115 /* Store Auxiliary control register */116 "mrc p15, 0, r0, c1, c0, 1\n"117 #endif118 99 /* Current settings */ 119 100 "mrc p15, 0, r0, c1, c0, 0\n" 120 101 121 #ifdef PROCESSOR_armv7_a122 /* Mask to enable paging, alignment and caching */123 "ldr r1, =0x00000007\n"124 #else125 102 /* Mask to enable paging */ 126 103 "ldr r1, =0x00000001\n" 127 #endif128 104 "orr r0, r0, r1\n" 129 105
Note:
See TracChangeset
for help on using the changeset viewer.