MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_hw_interrupt_init

Function rt_hw_interrupt_init

libcpu/ia32/interrupt.c:74–91  ·  view source on GitHub ↗

* This function initializes interrupt descript table and 8259 interrupt controller * */

Source from the content-addressed store, hash-verified

72 *
73 */
74void 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
93void rt_hw_interrupt_umask(int vector)
94{

Callers

nothing calls this directly

Calls 3

rt_hw_idt_initFunction · 0.85
rt_hw_pic_initFunction · 0.85
rt_snprintfFunction · 0.85

Tested by

no test coverage detected