]> 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)
commit7eb66b5729d22ad12ac9610592053a5daa5cf7c8
treec46ca396c6ce283dce5b64a6f5fb08406de33249
parente25d91a1ba2906e30216135eea5584709bcde57b
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]