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

Function rt_hw_interrupt_mask

libcpu/ia32/interrupt.c:100–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void rt_hw_interrupt_mask(int vector)
101{
102 irq_mask_8259A = irq_mask_8259A | (1<<vector);
103 outb(IO_PIC1+1, (char)irq_mask_8259A);
104 outb(IO_PIC2+1, (char)(irq_mask_8259A >> 8));
105}
106
107rt_isr_handler_t rt_hw_interrupt_install(int vector,
108 rt_isr_handler_t handler,

Callers

nothing calls this directly

Calls 1

outbFunction · 0.85

Tested by

no test coverage detected