Changeset 340 for soft/giet_vm/giet_boot
- Timestamp:
- Jun 24, 2014, 11:11:29 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_boot/boot.c
r329 r340 142 142 // Page table addresses arrays 143 143 __attribute__((section (".bootdata"))) 144 paddr_t _ptabs_paddr[GIET_NB_VSPACE_MAX];144 volatile paddr_t _ptabs_paddr[GIET_NB_VSPACE_MAX]; 145 145 146 146 __attribute__((section (".bootdata"))) 147 unsigned int _ptabs_vaddr[GIET_NB_VSPACE_MAX];147 volatile unsigned int _ptabs_vaddr[GIET_NB_VSPACE_MAX]; 148 148 149 149 // Next free PT2 index array 150 150 __attribute__((section (".bootdata"))) 151 unsigned int _next_free_pt2[GIET_NB_VSPACE_MAX] =151 volatile unsigned int _next_free_pt2[GIET_NB_VSPACE_MAX] = 152 152 { [0 ... GIET_NB_VSPACE_MAX - 1] = 0 }; 153 153 154 154 // Max PT2 index 155 155 __attribute__((section (".bootdata"))) 156 unsigned int _max_pt2[GIET_NB_VSPACE_MAX] =156 volatile unsigned int _max_pt2[GIET_NB_VSPACE_MAX] = 157 157 { [0 ... GIET_NB_VSPACE_MAX - 1] = 0 }; 158 158 … … 305 305 unsigned int ix2; 306 306 paddr_t pt1_pbase; // PT1 physical base address 307 paddr_t pt2_pbase ;// PT2 physical base address307 paddr_t pt2_pbase = 0; // PT2 physical base address 308 308 paddr_t pte_paddr; // PTE physucal address 309 309 unsigned int pt2_id; // PT2 index … … 2216 2216 case PERIPH_TYPE_IOB: // vci_io_bridge component 2217 2217 { 2218 // initialize r_xicu_base & r_xicu_size registers2219 unsigned int base = (unsigned int)SEG_XCU_BASE;2220 2221 2218 #if BOOT_DEBUG_PERI 2222 2219 _puts("- IOB : channels = "); 2223 2220 _putd(channels); 2224 _puts(" / XICU_BASE = "); 2225 _putx( base ); 2226 _puts(" / XICU_SIZE = "); 2227 _putx( 0x1000 ); 2228 _puts("\n"); 2229 #endif 2230 _iob_set_xicu_base( cluster_xy, base ); 2231 _iob_set_xicu_size( cluster_xy, 0x1000 ); 2232 2221 _puts("\n"); 2222 #endif 2233 2223 if (GIET_USE_IOMMU) 2234 2224 { … … 2337 2327 // Most of this code is executed by Processor 0 only. 2338 2328 ///////////////////////////////////////////////////////////////////////// 2339 void boot_init() 2329 void boot_init() 2340 2330 { 2341 2331 mapping_header_t* header = (mapping_header_t *)SEG_BOOT_MAPPING_BASE;
Note: See TracChangeset
for help on using the changeset viewer.