]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix: wrap pci.c in #if x86 guard with stubs for other architectures
authorTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 04:05:52 +0000 (01:05 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 04:05:52 +0000 (01:05 -0300)
commit71ff37a31ea1057b5372674304c87cc23ab8fba3
tree06afff5ed6233d1f6b41e67771730709e9aa25ad
parent7e3b16c68a46148e919836067f0ef9b18900bf9b
fix: wrap pci.c in #if x86 guard with stubs for other architectures

PCI config space I/O port access (0xCF8/0xCFC) using outl/inl is
x86-only. The driver had no architecture guard, so it would fail
to compile on ARM, RISC-V, and MIPS.

Wrap the full implementation in #if defined(__i386__) and provide
no-op stubs for non-x86 targets.

Passes: make, cppcheck, QEMU smoke test.
src/drivers/pci.c