]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelSiliconPkg IntelVTdDxe: Remove mVtdHostAddressWidthMask
authorStar Zeng <star.zeng@intel.com>
Tue, 16 Jan 2018 10:56:44 +0000 (18:56 +0800)
committerStar Zeng <star.zeng@intel.com>
Wed, 17 Jan 2018 02:49:02 +0000 (10:49 +0800)
mVtdHostAddressWidthMask is not been used at all,
its definition and related code could be removed.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
IntelSiliconPkg/Feature/VTd/IntelVTdDxe/DmaProtection.h
IntelSiliconPkg/Feature/VTd/IntelVTdDxe/DmarAcpiTable.c
IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c

index 767531e4a93ff99f2668d8c8079779746ed2bcc6..2ec92fe523c395a1b964a73e0e1cbd95395af193 100644 (file)
@@ -124,7 +124,6 @@ EFI_STATUS
 \r
 extern EFI_ACPI_DMAR_HEADER  *mAcpiDmarTable;\r
 \r
-extern UINT64                           mVtdHostAddressWidthMask;\r
 extern UINTN                            mVtdUnitNumber;\r
 extern VTD_UNIT_INFORMATION             *mVtdUnitInformation;\r
 \r
index 342830a01fb05135706b610c8225fac98ab5eb78..24ad47edc543619ba65a31302fe0634f29769bb7 100644 (file)
@@ -806,8 +806,6 @@ ParseDmarAcpiTableDrhd (
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
-  mVtdHostAddressWidthMask = LShiftU64 (1ull, mAcpiDmarTable->HostAddressWidth) - 1;\r
-\r
   VtdIndex = 0;\r
   DmarHeader = (EFI_ACPI_DMAR_STRUCTURE_HEADER *)((UINTN)(mAcpiDmarTable + 1));\r
   while ((UINTN)DmarHeader < (UINTN)mAcpiDmarTable + mAcpiDmarTable->Header.Length) {\r
index 1404af7cd7817fb4163b9eb01e7ad2df66631d87..bc9f427a36863ac17890a913d0c683a32dcacc30 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-  Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2017 - 2018, 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
@@ -13,7 +13,6 @@
 \r
 #include "DmaProtection.h"\r
 \r
-UINT64                           mVtdHostAddressWidthMask;\r
 UINTN                            mVtdUnitNumber;\r
 VTD_UNIT_INFORMATION             *mVtdUnitInformation;\r
 \r