that was a dumb bug to fix
This commit is contained in:
parent
594d79143e
commit
4a50a9e027
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user