]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix a bug by the check-in of 1738, which programs SATA interrupt line wrongly and...
authormikewuping <mikewuping@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 16 Oct 2006 09:39:41 +0000 (09:39 +0000)
committermikewuping <mikewuping@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 16 Oct 2006 09:39:41 +0000 (09:39 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1762 6f19259b-4bc3-4df7-8a09-765794883524

EdkModulePkg/Bus/Pci/PciBus/Dxe/PciDeviceSupport.c

index 77e7cbaa8255ab899720257a20b099831d1dc28e..b1cee26c0a3e6c1b01da8517fb5bef1e3b1054d1 100644 (file)
@@ -305,7 +305,6 @@ Returns:
   UINTN               PlatformOpRomSize;\r
   UINT8               PciExpressCapRegOffset;\r
   EFI_PCI_IO_PROTOCOL *PciIo;\r
-  UINT8               Data8;\r
 \r
   //\r
   // Install the pciio protocol, device path protocol\r
@@ -340,8 +339,8 @@ Returns:
   // Force Interrupt line to zero for cards that come up randomly\r
   //\r
   PciIo = &(PciIoDevice->PciIo);\r
-  Data8 = 0xFF;\r
-  PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x3C, 1, &Data8);\r
+  PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x3C, 1, &gAllZero);\r
+  \r
   //\r
   // Process Platform OpRom\r
   //\r