From 4393fbf6cb55ddf2e913ea747956c5764899b003 Mon Sep 17 00:00:00 2001 From: Gregory Bowne Date: Tue, 27 Jan 2026 12:37:38 -0800 Subject: [PATCH] Update pci.c Change this to use io.h to define the in/out assembly instead of doing directly --- kernel/pci.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/kernel/pci.c b/kernel/pci.c index 0a941e4..14d6c2d 100644 --- a/kernel/pci.c +++ b/kernel/pci.c @@ -1,15 +1,5 @@ #include "pci.h" - -/* --- Internal I/O Helpers (If not defined in your kernel) --- */ -static inline void outl(uint16_t port, uint32_t val) { - __asm__ volatile ("outl %0, %1" : : "a"(val), "Nd"(port)); -} - -static inline uint32_t inl(uint16_t port) { - uint32_t ret; - __asm__ volatile ("inl %1, %0" : "=a"(ret) : "Nd"(port)); - return ret; -} +#include "io.h" /* --- Configuration Access Functions --- */