aboutsummaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-24 12:33:42 -0400
committerIan Moffett <ian@osmora.org>2024-03-24 12:33:42 -0400
commit60c595d9fc67735447099e19a9311aacf913d545 (patch)
treedfad47b66f93fc0c6b6459b4efd82bf89809d4f6 /sys/arch/amd64
parent81555ea5259ae1654f28b758986fc5cdc3b97423 (diff)
kernel/amd64: machdep: Init PCI driver
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/machdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c
index 47d6dd0..1c158da 100644
--- a/sys/arch/amd64/amd64/machdep.c
+++ b/sys/arch/amd64/amd64/machdep.c
@@ -32,6 +32,7 @@
#include <sys/panic.h>
#include <machine/trap.h>
#include <machine/idt.h>
+#include <machine/io.h>
#include <machine/gdt.h>
#include <machine/ioapic.h>
#include <machine/hpet.h>
@@ -41,6 +42,7 @@
#include <machine/cpu.h>
#include <machine/uart.h>
#include <machine/cpuid.h>
+#include <dev/pci/pci.h>
#include <vm/vm.h>
#include <vm/dynalloc.h>
#include <vm/physseg.h>
@@ -118,6 +120,8 @@ chips_init(void)
/* Hyra requires HPET on x86_64 */
if (hpet_init() != 0)
panic("Machine does not support HPET!\n");
+
+ pci_init();
}
/*