Changeset 478 for soft/giet_vm/giet_kernel/kernel_init.c
- Timestamp:
- Jan 1, 2015, 7:58:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_kernel/kernel_init.c
r467 r478 16 16 #include <xcu_driver.h> 17 17 #include <ioc_driver.h> 18 #include <mmc_driver.h> 18 19 #include <ctx_handler.h> 19 20 #include <irq_handler.h> … … 106 107 //////////////////////////////////////////////////////////////////////////////////// 107 108 108 sbt_lock_t _tty_tx_lock[NB_TTY_CHANNELS] __attribute__((aligned(64)));109 110 109 unsigned int _tty_rx_buf[NB_TTY_CHANNELS]; 111 110 unsigned int _tty_rx_full[NB_TTY_CHANNELS]; 112 111 113 114 115 112 //////////////////////////////////////////////////////////////////////////////////// 113 // Distributed locks protecting TTY terminals 114 //////////////////////////////////////////////////////////////////////////////////// 115 116 sbt_lock_t _tty_tx_lock[NB_TTY_CHANNELS] __attribute__((aligned(64))); 116 117 117 118 /////////////////////////////////////////////////////////////////////////////////// … … 142 143 while( cpid != kernel_init_barrier ) asm volatile ( "nop" ); 143 144 144 // Step 0 : P[0,0,0] initialises the kernel FAT 145 // and the distributed kernel_heap descriptors array. 145 // Step 0 : P[0,0,0] initialises various complex structures 146 // - kernel FAT 147 // - distributed kernel heaps 148 // - distributed locks protecting TTY channels 149 // - distributed locks protecting MMC components 146 150 if ( gpid == 0 ) 147 151 { … … 155 159 { 156 160 _sbt_lock_init( &_tty_tx_lock[channel] ); 161 162 #if GIET_DEBUG_INIT 163 _nolock_printf("\n[DEBUG KERNEL_INIT] P[%d,%d,%d] completes TTY[%d] lock init\n", 164 x , y , p , channel ); 165 #endif 157 166 } 158 167 159 #if GIET_DEBUG_INIT 160 _nolock_printf("\n[DEBUG KERNEL_INIT] P[%d,%d,%d] completes TTY locks init\n", x, y, p ); 161 #endif 162 168 /* 169 unsigned int cx, cy; 170 for ( cx = 0 ; cx < X_SIZE ; cx++ ) 171 { 172 for ( cy = 0 ; cy < X_SIZE ; cy++ ) 173 { 174 _sbt_lock_init( &_mmc_lock[cx][cy] ); 175 176 #if GIET_DEBUG_INIT 177 _nolock_printf("\n[DEBUG KERNEL_INIT] P[%d,%d,%d] completes MMC[%d][%d] lock init\n", 178 x , y , p , cx , cy ); 179 #endif 180 } 181 } 182 */ 163 183 _fat_init( IOC_BOOT_MODE ); 164 184
Note: See TracChangeset
for help on using the changeset viewer.