* This function initializes interrupt descript table and 8259 interrupt controller * */
| 72 | * |
| 73 | */ |
| 74 | void rt_hw_interrupt_init(void) |
| 75 | { |
| 76 | int idx; |
| 77 | |
| 78 | rt_hw_idt_init(); |
| 79 | rt_hw_pic_init(); |
| 80 | |
| 81 | /* init exceptions table */ |
| 82 | for(idx=0; idx < MAX_HANDLERS; idx++) |
| 83 | { |
| 84 | irq_desc[idx].handler = (rt_isr_handler_t)rt_hw_interrupt_handle; |
| 85 | irq_desc[idx].param = RT_NULL; |
| 86 | #ifdef RT_USING_INTERRUPT_INFO |
| 87 | rt_snprintf(irq_desc[idx].name, RT_NAME_MAX - 1, "default"); |
| 88 | irq_desc[idx].counter = 0; |
| 89 | #endif |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | void rt_hw_interrupt_umask(int vector) |
| 94 | { |
nothing calls this directly
no test coverage detected