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 767531e..2ec92fe 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 342830a..24ad47e 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 1404af7..bc9f427 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