mirror of https://github.com/acidanthera/audk.git
The updating (change the Interrupt Line to 0xFF for unknown setting) is only for x86 based on the PCI spec, so added the compiler option for such code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2229 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2da41b57c5
commit
6c31fdb887
|
@ -338,9 +338,14 @@ Returns:
|
||||||
|
|
||||||
//
|
//
|
||||||
// Force Interrupt line to "Unknown" or "No Connection"
|
// Force Interrupt line to "Unknown" or "No Connection"
|
||||||
|
// based on the PCI spec, the Interrupt line for x86 should be set as 0xFF for unknown.
|
||||||
//
|
//
|
||||||
PciIo = &(PciIoDevice->PciIo);
|
PciIo = &(PciIoDevice->PciIo);
|
||||||
|
#ifndef MDE_CPU_IPF
|
||||||
Data8 = PCI_INT_LINE_UNKNOWN;
|
Data8 = PCI_INT_LINE_UNKNOWN;
|
||||||
|
#else
|
||||||
|
Data8 = 0;
|
||||||
|
#endif
|
||||||
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x3C, 1, &Data8);
|
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x3C, 1, &Data8);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue