- Fixed the offset in ReadPciConfigUshort.

svn path=/trunk/; revision=4586
This commit is contained in:
Hartmut Birr 2003-04-26 07:09:26 +00:00
parent 40b6b22911
commit 4b11a99bfe

View file

@ -190,7 +190,7 @@ ReadPciConfigUshort(U8 Bus,
{
case 1:
WRITE_PORT_ULONG((PU32)0xCF8, CONFIG_CMD(Bus, Slot, Offset));
*Value = READ_PORT_USHORT((PU16)0xCFC + (Offset & 1));
*Value = READ_PORT_USHORT((PU16)0xCFC + (Offset & 2));
return TRUE;
case 2: