summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Häuser <Marvin.Haeuser@outlook.com>2018-02-27 18:23:05 +0100
committerJiewen Yao <jiewen.yao@intel.com>2018-02-28 09:14:03 +0800
commit2f3197b485e3b887580e568c1f3da4c011fcf60d (patch)
tree41dab5dd83d039b576c97d6b60556045a7942e13
parent25bd1091211b81309147dcdf09b4f61fc23635bb (diff)
downloadedk2-platforms-2f3197b485e3b887580e568c1f3da4c011fcf60d.tar.xz
MinPlatformPkg/TestPointCheckLib: Add missing typecasts to UINTN.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
-rw-r--r--Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c16
-rw-r--r--Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.c4
2 files changed, 10 insertions, 10 deletions
diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c
index 7a890bcd99..5880911a6d 100644
--- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c
+++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c
@@ -517,24 +517,24 @@ TestPointDxeSmmReadyToBootSmmPageProtection (
CommData->UefiMemoryAttributeTableSize = MemoryAttributesTableSize;
CopyMem (
- (VOID *)((UINTN)CommData + CommData->UefiMemoryMapOffset),
+ (VOID *)(UINTN)((UINTN)CommData + CommData->UefiMemoryMapOffset),
UefiMemoryMap,
- CommData->UefiMemoryMapSize
+ (UINTN)CommData->UefiMemoryMapSize
);
CopyMem (
- (VOID *)((UINTN)CommData + CommData->GcdMemoryMapOffset),
+ (VOID *)(UINTN)((UINTN)CommData + CommData->GcdMemoryMapOffset),
GcdMemoryMap,
- CommData->GcdMemoryMapSize
+ (UINTN)CommData->GcdMemoryMapSize
);
CopyMem (
- (VOID *)((UINTN)CommData + CommData->GcdIoMapOffset),
+ (VOID *)(UINTN)((UINTN)CommData + CommData->GcdIoMapOffset),
GcdIoMap,
- CommData->GcdIoMapSize
+ (UINTN)CommData->GcdIoMapSize
);
CopyMem (
- (VOID *)((UINTN)CommData + CommData->UefiMemoryAttributeTableOffset),
+ (VOID *)(UINTN)((UINTN)CommData + CommData->UefiMemoryAttributeTableOffset),
MemoryAttributesTable,
- CommData->UefiMemoryAttributeTableSize
+ (UINTN)CommData->UefiMemoryAttributeTableSize
);
CommSize = OFFSET_OF(EFI_SMM_COMMUNICATE_HEADER, Data) + CommHeader->MessageLength;
diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.c
index 25b86e8b24..ff536ae801 100644
--- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.c
+++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.c
@@ -332,10 +332,10 @@ TestPointSmmReadyToBootSmmPageProtectionHandler (
Result = TRUE;
Status = TestPointCheckSmmCommunicationBuffer (
- (EFI_MEMORY_DESCRIPTOR *)((UINTN)CommData + CommData->UefiMemoryMapOffset),
+ (EFI_MEMORY_DESCRIPTOR *)(UINTN)((UINTN)CommData + CommData->UefiMemoryMapOffset),
(UINTN)CommData->UefiMemoryMapSize,
mUefiDescriptorSize,
- (CommData->UefiMemoryAttributeTableSize != 0) ? (EFI_MEMORY_ATTRIBUTES_TABLE *)((UINTN)CommData + CommData->UefiMemoryAttributeTableOffset) : NULL
+ (CommData->UefiMemoryAttributeTableSize != 0) ? (EFI_MEMORY_ATTRIBUTES_TABLE *)(UINTN)((UINTN)CommData + CommData->UefiMemoryAttributeTableOffset) : NULL
);
if (EFI_ERROR(Status)) {
Result = FALSE;