diff options
author | Ian Moffett <ian@osmora.org> | 2025-01-27 22:16:51 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-01-27 22:16:51 -0500 |
commit | 9bb4cca1abdb9789c98fbab4387bed3091cb6f26 (patch) | |
tree | ca8a768f072ade2d7e666a32a33005a7fe8ab8dc /sys/arch | |
parent | c7d979e85dca9e6a480b44c0ccb0ef8cc60f7e6b (diff) |
kernel/amd64: pci: Add PCI MSI-X EOI wrapper
Add machine-independent PCI MSI-X EOI wrapper to Local APIC EOI function
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/pci/pci_machdep.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/arch/amd64/pci/pci_machdep.c b/sys/arch/amd64/pci/pci_machdep.c index 1cc2162..d2d4e72 100644 --- a/sys/arch/amd64/pci/pci_machdep.c +++ b/sys/arch/amd64/pci/pci_machdep.c @@ -140,6 +140,16 @@ pci_map_bar(struct pci_device *dev, uint8_t barno, void **vap) return bus_map(bar, size, 0, vap); } +void +pci_msix_eoi(void) +{ + /* + * On AMD64 all we need to do is send an EOI to the + * Local APIC onboard the current processor. + */ + lapic_eoi(); +} + /* * Enable MSI-X for a device and allocate an * interrupt vector. |