794 B
794 B
PIC API
Introduction
The PIC API is used to correctly setup the PIC, before the initialization of the IOAPIC subsystem. It provides a minimal API to manage only the part where the PIC is needed in the boot process. Otherwise, the PIC is just ignored once all legacy IRQs are managed by the IOAPIC subsystem. The PIC API is defined in shelter/lib/include/cpu/pic.h and implemented in shelter/lib/include/cpu/pic.c.
API overview
The API provides the following functions:
sh_pic_remap(): remap all legacy IRQs on IDT vectors 32 to 47, should only be called once before any use of the PICsh_pic_unmask(): take an IRQ number and unmask this IRQ linesh_pic_mask(): take an IRQ number and mask this IRQ linesh_pic_send_eoi(): send End Of Interrupt signal to the PIC