Changeset 8f9d70b in mainline for boot/arch/arm32/src/mm.c
- Timestamp:
- 2013-03-24T14:55:36Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0dfa93b0
- Parents:
- 119b46e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/mm.c
r119b46e r8f9d70b 75 75 if (address >= AM335x_RAM_START && address < AM335x_RAM_END) 76 76 return 1; 77 #elif defined MACHINE_raspberrypi 78 const unsigned long address = section << PTE_SECTION_SHIFT; 79 if (address < BCM2835_RAM_END) 80 return 1; 77 81 #endif 78 82 return 0; … … 113 117 static void init_boot_pt(void) 114 118 { 119 #if defined MACHINE_raspberrypi 120 const pfn_t split_page = 2048; 121 #else 115 122 const pfn_t split_page = PTL0_ENTRIES; 123 #endif 124 116 125 /* Create 1:1 virtual-physical mapping (in lower 2 GB). */ 117 126 pfn_t page; 118 127 for (page = 0; page < split_page; page++) 119 128 init_ptl0_section(&boot_pt[page], page); 120 129 130 #if defined MACHINE_raspberrypi 131 for (; page < PTL0_ENTRIES; page++) 132 init_ptl0_section(&boot_pt[page], page - split_page); 133 #endif 121 134 asm volatile ( 122 135 "mcr p15, 0, %[pt], c2, c0, 0\n"
Note:
See TracChangeset
for help on using the changeset viewer.