Changes between Version 1 and Version 2 of kernel_interrupts
- Timestamp:
- Oct 7, 2014, 11:59:23 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_interrupts
v1 v2 9 9 ||isr_id ||bits[15:0] || defines the type of ISR to be executed || 10 10 ||channel_id ||bits[30:16] || defines the channel for multi-channels peripherals || 11 ||valid || bit 31|| valid interrupt vector entry ||11 ||valid || bit [31] || valid interrupt vector entry || 12 12 13 13 If the peripheral is replicated in clusters, the channel_id is a global index : … … 15 15 16 16 17 === void _irq_demux() ===17 === void '''_irq_demux'''() === 18 18 This function access the ICU or XCU component (Interrupt Controler Unit) to get the interrupt vector entry. There is one ICU or XICU component per cluster, and these components support several output IRQs (one output IRQ per processor in a given cluster). 19 19 It uses the [source:soft/giet_vm/giet_drivers/xcu_driver _xcu_get_index()] or [source:soft/giet_vm/giet_drivers/icu_driver_icu_get_index()] functions to get the IRQ type (HWI / PTI / WTI), and the index in the corresponding interrupt vector. … … 30 30 31 31 32 === void _isr_wakup( unsigned int irq_type, unsigned int irq_id, unsigned int channel ) ===32 === void '''_isr_wakup'''( unsigned int irq_type, unsigned int irq_id, unsigned int channel ) === 33 33 This ISR can only be executed after a WTI (IPI) awake an idle processor, or to force a context switch 34 34 on a remote processor. The context switch is only executed if the current task is the IDLE_TASK, or if the value written in the mailbox is non zero. 35 35 36 === '''void_isr_tick'''( unsigned int irq_type, unsigned int irq_id, unsigned int channel ) ===36 === void '''_isr_tick'''( unsigned int irq_type, unsigned int irq_id, unsigned int channel ) === 37 37 This ISR is in charge of context switch, and handles the IRQs generated by 38 38 // the "system" timers. It can be PTI in case of XCU, or it can be HWI generated … … 40 40 // The ISR acknowledges the IRQ, and calls the _ctx_switch() function. 41 41 42 === void _isr_default() ===42 === void '''_isr_default'''() === 43 43 This default ISR is called when the interrupt handler is called, and there is no active IRQ. It simply displays a warning message on the kernel TTY[0].