Skip to content

Commit 27a4feb

Browse files
add cpu id warning
1 parent ceeaaed commit 27a4feb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/pci.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@ bool pci_enable_msix(pci_dev_t device, uint32_t vector, uint16_t entry, uint32_t
283283
* @param handler Interrupt service routine to register.
284284
* @param context Opaque pointer passed to the ISR when the interrupt fires.
285285
*
286+
* @warning The lapic_id parameter must be a valid Local APIC ID
287+
* corresponding to an online CPU. Passing an invalid or
288+
* offline APIC ID will result in undefined behaviour and
289+
* may cause interrupts to be lost.
290+
*
286291
* @return The assigned interrupt vector (64–255 if MSI/MSI-X was used,
287292
* or IRQ_START + line if falling back to legacy INTx).
288293
*

0 commit comments

Comments
 (0)