]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
refactor: move x86 PCI driver from src/drivers/pci.c to src/hal/x86/pci.c
authorTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 05:37:31 +0000 (02:37 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 05:37:31 +0000 (02:37 -0300)
commit7b8a8c1f114c81eb1670d25c169fc5e0e67f93e5
tree85f0bd537f381cfb8990412e557ff5700ec8547c
parenteaf3cc6e161eb3db79fad33ff2c074db988bc694
refactor: move x86 PCI driver from src/drivers/pci.c to src/hal/x86/pci.c

PCI config space access via I/O ports 0xCF8/0xCFC is x86-specific.
The full PCI enumeration implementation now lives in src/hal/x86/pci.c
(no #if guards). src/drivers/pci.c contains only weak stubs that are
overridden by the arch-specific version at link time.

Passes: make, cppcheck, QEMU smoke test.
src/drivers/pci.c
src/hal/x86/pci.c [new file with mode: 0644]