Changes in boot/arch/arm32/src/mm.c [8f9d70b:2e55443] in mainline
- File:
- 
      - 1 edited
 
 - 
          
  boot/arch/arm32/src/mm.c (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      boot/arch/arm32/src/mm.cr8f9d70b r2e55443 75 75 if (address >= AM335x_RAM_START && address < AM335x_RAM_END) 76 76 return 1; 77 #elif defined MACHINE_raspberrypi78 const unsigned long address = section << PTE_SECTION_SHIFT;79 if (address < BCM2835_RAM_END)80 return 1;81 77 #endif 82 78 return 0; … … 117 113 static void init_boot_pt(void) 118 114 { 119 #if defined MACHINE_raspberrypi120 const pfn_t split_page = 2048;121 #else122 115 const pfn_t split_page = PTL0_ENTRIES; 123 #endif124 125 116 /* Create 1:1 virtual-physical mapping (in lower 2 GB). */ 126 117 pfn_t page; 127 118 for (page = 0; page < split_page; page++) 128 119 init_ptl0_section(&boot_pt[page], page); 129 130 #if defined MACHINE_raspberrypi 131 for (; page < PTL0_ENTRIES; page++) 132 init_ptl0_section(&boot_pt[page], page - split_page); 133 #endif 120 134 121 asm volatile ( 135 122 "mcr p15, 0, %[pt], c2, c0, 0\n" 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
