diff --git a/kernel/src/io/PCI.cpp b/kernel/src/io/PCI.cpp index 204f2289..94c9f4e2 100644 --- a/kernel/src/io/PCI.cpp +++ b/kernel/src/io/PCI.cpp @@ -42,7 +42,7 @@ uint8_t PCI::raw_read8(uint32_t bus, uint32_t slot, uint32_t function, int32_t o uint16_t PCI::raw_read16(uint32_t bus, uint32_t slot, uint32_t function, int32_t offset) { IO::outl(PCI_ADDRESS, raw_address(bus, slot, function, offset)); - return (uint8_t)(IO::inl(PCI_VALUE + (offset & 2)) & 0xFFFF); + return (uint16_t)(IO::inl(PCI_VALUE + (offset & 2)) & 0xFFFF); } uint32_t PCI::raw_read32(uint32_t bus, uint32_t slot, uint32_t function, int32_t offset)