YABEL: fix 32bit cf8/cfc PCI Config accesses
Signed-off-by: Pattrick Hueper <phueper@hueper.net> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://coreboot.org/repository/coreboot-v3@1144 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
77407f5341
commit
1ef9d2f412
1 changed files with 2 additions and 2 deletions
|
|
@ -348,7 +348,7 @@ u32
|
|||
pci_cfg_read(X86EMU_pioAddr addr, u8 size)
|
||||
{
|
||||
u32 rval = 0xFFFFFFFF;
|
||||
if ((addr >= 0xCFC) && ((addr + size) <= 0xCFF)) {
|
||||
if ((addr >= 0xCFC) && ((addr + size) <= 0xD00)) {
|
||||
// PCI Configuration Mechanism 1 step 1
|
||||
// write to 0xCF8, sets bus, device, function and Config Space offset
|
||||
// later read from 0xCFC-0xCFF returns the value...
|
||||
|
|
@ -404,7 +404,7 @@ pci_cfg_read(X86EMU_pioAddr addr, u8 size)
|
|||
void
|
||||
pci_cfg_write(X86EMU_pioAddr addr, u32 val, u8 size)
|
||||
{
|
||||
if ((addr >= 0xCFC) && ((addr + size) <= 0xCFF)) {
|
||||
if ((addr >= 0xCFC) && ((addr + size) <= 0xD00)) {
|
||||
// PCI Configuration Mechanism 1 step 1
|
||||
// write to 0xCF8, sets bus, device, function and Config Space offset
|
||||
// later write to 0xCFC-0xCFF sets the value...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue