summaryrefslogtreecommitdiff
path: root/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c')
-rw-r--r--Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.c16
1 files changed, 8 insertions, 8 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;