]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ata.c
Update the copyright notice format
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / IdeBusDxe / Ata.c
index c22f7a3b303e48347c077fe897ada72d61059208..c541eb8991a91e5cd7680567838859b81d6fb9d3 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   This file contains all helper functions on the ATA command \r
   \r
-  Copyright (c) 2006 - 2010, Intel Corporation.<BR>\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   http://opensource.org/licenses/bsd-license.php\r
@@ -2563,7 +2563,8 @@ AtaEnableLongPhysicalSector (
       //\r
       if ((AtaIdentifyData->alignment_logic_in_phy_blocks & 0xc000) == 0x4000) {\r
         IdeDev->BlkIo.Media->LowestAlignedLba =\r
-          (EFI_LBA) (AtaIdentifyData->alignment_logic_in_phy_blocks & 0x3fff);\r
+          (EFI_LBA) ((IdeDev->BlkIo.Media->LogicalBlocksPerPhysicalBlock - ((UINT32)AtaIdentifyData->alignment_logic_in_phy_blocks & 0x3fff)) %\r
+          IdeDev->BlkIo.Media->LogicalBlocksPerPhysicalBlock);\r
       }\r
     }\r
     //\r