that was a dumb bug to fix

This commit is contained in:
apio 2022-10-06 18:02:57 +02:00
parent 594d79143e
commit 4a50a9e027

View File

@ -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) 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)); 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) uint32_t PCI::raw_read32(uint32_t bus, uint32_t slot, uint32_t function, int32_t offset)