Changeset 231 for soft/giet_vm/sys/irq_handler.c
- Timestamp:
- Mar 5, 2013, 1:42:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/irq_handler.c
r228 r231 57 57 unsigned int entry = _get_interrupt_vector_entry(irq_id); 58 58 unsigned int isr_id = entry & 0x000000FF; 59 unsigned int type_id = (entry >> 8) & 0x000000FF; 59 60 unsigned int channel_id = (entry >> 16) & 0x0000FFFF; 60 if ( isr_id == ISR_SWITCH) _isr_switch( channel_id); 61 else if ( isr_id == ISR_IOC ) _isr_ioc(); 62 else if ( isr_id == ISR_DMA ) _isr_dma(channel_id); 63 else if ( isr_id == ISR_TTY ) _isr_tty(channel_id); 64 else if ( isr_id == ISR_TIMER ) _isr_timer(channel_id); 65 else _isr_default(); 61 if(type_id == 0) // HARD irq type 62 { 63 if ( isr_id == ISR_SWITCH) _isr_switch(channel_id); 64 else if ( isr_id == ISR_IOC ) _isr_ioc(); 65 else if ( isr_id == ISR_DMA ) _isr_dma(channel_id); 66 else if ( isr_id == ISR_TTY ) _isr_tty(channel_id); 67 else if ( isr_id == ISR_TIMER ) _isr_timer(channel_id); 68 else _isr_default(); 69 } 70 else // PTI irq type 71 { 72 if ( isr_id == ISR_SWITCH) _isr_switch(irq_id); 73 else if ( isr_id == ISR_TIMER ) _isr_timer(irq_id); 74 } 66 75 } 67 76 }
Note: See TracChangeset
for help on using the changeset viewer.