Changeset 496 for soft/giet_vm/giet_drivers/ioc_driver.c
- Timestamp:
- Feb 8, 2015, 1:12:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/ioc_driver.c
r481 r496 67 67 /////////////////////////////////////////////////////////////////////////////// 68 68 69 #define in_unckdata __attribute__((section (".unckdata"))) 70 71 in_unckdata volatile unsigned int _ioc_iommu_ix1 = 0; 72 in_unckdata volatile unsigned int _ioc_iommu_npages; 69 __attribute__((section (".kdata"))) 70 volatile unsigned int _ioc_iommu_ix1 = 0; 71 72 __attribute__((section (".kdata"))) 73 volatile unsigned int _ioc_iommu_npages; 73 74 74 75 /////////////////////////////////////////////////////////////////////////////// … … 96 97 unsigned int y = (procid >> P_WIDTH) & ((1<<Y_WIDTH)-1); 97 98 unsigned int p = procid & ((1<<P_WIDTH)-1); 98 _puts("\n[IOC DEBUG] _ioc_access() : P["); 99 _putd( x ); 100 _puts(","); 101 _putd( y ); 102 _puts(","); 103 _putd( p ); 104 _puts("] enters at cycle "); 105 _putd( _get_proctime() ); 106 _puts("\n - channel = "); 107 _putd( channel ); 108 _puts("\n - mode = "); 109 _putd( mode ); 110 _puts("\n - vaddr = "); 111 _putx( buf_vaddr ); 112 _puts("\n - sectors = "); 113 _putd( count ); 114 _puts("\n - lba = "); 115 _putx( lba ); 116 _puts("\n"); 99 _printf("\n[IOC DEBUG] _ioc_access() : P[%d,%d,%d] enters at cycle %d\n" 100 " - channel = %d\n" 101 " - mode = %d\n" 102 " - vaddr = %x\n" 103 " - sectors = %d\n" 104 " - lba = %x\n", 105 x, y , p, _get_proctime(), channel, mode, buf_vaddr, count, lba ); 117 106 #endif 118 107 … … 140 129 141 130 // computing memory buffer physical address 142 if ( (mode == IOC_BOOT_MODE) && ((_get_mmu_mode() & 0x4) == 0) ) // identity mapping131 if ( (mode == IOC_BOOT_MODE) && ((_get_mmu_mode() & 0x4) == 0) ) // identity 143 132 { 144 133 buf_paddr = (paddr_t)buf_vaddr; 145 134 } 146 else 135 else // V2P translation required 147 136 { 148 137 // get page table virtual address … … 280 269 #elif ( USE_IOC_RDK ) 281 270 282 return rdk_get_status();271 return _rdk_get_status(); 283 272 284 273 #endif
Note: See TracChangeset
for help on using the changeset viewer.