Changeset 215 for soft/giet_vm/sys/kernel_init.c
- Timestamp:
- Sep 17, 2012, 10:47:46 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/kernel_init.c
r207 r215 48 48 unsigned int _idle_stack[NB_CLUSTERS*NB_PROCS_MAX*64]; 49 49 50 void _sys_exit() 51 { 52 while(1); 53 } 54 50 55 ////////////////////////////////////////////////////////////////////////////////// 51 56 // This function is the entry point for the last step of the boot sequence. … … 127 132 unsigned int pti_mask = 0; 128 133 134 unsigned int isr_switch_channel = 0xFFFFFFFF; 135 129 136 for ( irq_id = 0 ; irq_id < 32 ; irq_id++ ) 130 137 { … … 136 143 hwi_mask = hwi_mask | 0x1<< irq_id; 137 144 } 138 else if ( (isr == ISR_SWITCH) || (isr == ISR_TIMER))145 else if ( (isr == ISR_SWITCH) ) 139 146 { 147 pti_mask = pti_mask | 0x1<< irq_id; 148 isr_switch_channel = irq_id; 149 } 150 else if ( (isr == ISR_TIMER) ) 151 { 140 152 pti_mask = pti_mask | 0x1<< irq_id; 141 153 } … … 159 171 if ( tasks > 1 ) 160 172 { 173 if(isr_switch_channel == 0xFFFFFFFF) 174 { 175 _puts("\n[GIET ERROR] ISR_SWITCH not found on proc "); 176 _putd( proc_id); 177 _puts("\n"); 178 _sys_exit(); 179 } 161 180 _timer_start( cluster_id, 162 proc_id,181 isr_switch_channel, 163 182 GIET_TICK_VALUE ); 164 183
Note: See TracChangeset
for help on using the changeset viewer.