diff options
Diffstat (limited to 'MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c')
-rw-r--r-- | MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c b/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c index 3e7054cd38..3575a94d0f 100644 --- a/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c +++ b/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c @@ -10,7 +10,7 @@ into memory.
(C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>
-Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -45,7 +45,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @param MemSize The size of the block of memory pointed to by MemBase
@param DataSize How big a free block we want to find
- @return A pointer to a memory block of at least DataSize that lies somewhere
+ @return A pointer to a memory block of at least DataSize that lies somewhere
between MemBase and (MemBase + MemSize). The memory pointed to does not
contain any of the capsule block descriptors or capsule blocks pointed to
by the BlockList.
@@ -75,7 +75,7 @@ FindFreeMem ( @param MemSize size of the system memory pointed to by MemBase
@retval NULL could not relocate the descriptors
- @retval Pointer to the base of the successfully-relocated block descriptors.
+ @retval Pointer to the base of the successfully-relocated block descriptors.
**/
EFI_CAPSULE_BLOCK_DESCRIPTOR *
@@ -93,7 +93,7 @@ RelocateBlockDescriptors ( @param CapsuleHeader The pointer to EFI_CAPSULE_HEADER
@retval FALSE Capsule is OK
- @retval TRUE Capsule is corrupted
+ @retval TRUE Capsule is corrupted
**/
BOOLEAN
@@ -153,7 +153,7 @@ GetCapsuleInfo ( @param MemSize The size of the block of memory pointed to by MemBase
@param DataSize How big a free block we want to find
- @return A pointer to a memory block of at least DataSize that lies somewhere
+ @return A pointer to a memory block of at least DataSize that lies somewhere
between MemBase and (MemBase + MemSize). The memory pointed to does not
contain any of the capsule block descriptors or capsule blocks pointed to
by the BlockList.
@@ -321,7 +321,7 @@ ValidateCapsuleIntegrity ( // * The first capsule header flag
// * The first capsule header HeaderSize
// * Below check will be done in ValidateCapsuleByMemoryResource()
- // Length > MAX_ADDRESS
+ // Length > MAX_ADDRESS
// Ptr + sizeof (EFI_CAPSULE_BLOCK_DESCRIPTOR) > MAX_ADDRESS
// DataBlock + Length > MAX_ADDRESS
//
@@ -450,7 +450,7 @@ ValidateCapsuleIntegrity ( @param MemSize size of the system memory pointed to by MemBase
@retval NULL could not relocate the descriptors
- @retval Pointer to the base of the successfully-relocated block descriptors.
+ @retval Pointer to the base of the successfully-relocated block descriptors.
**/
EFI_CAPSULE_BLOCK_DESCRIPTOR *
@@ -737,7 +737,7 @@ GetCapsuleInfo ( @param CapsuleHeader The pointer to EFI_CAPSULE_HEADER
@retval FALSE Capsule is OK
- @retval TRUE Capsule is corrupted
+ @retval TRUE Capsule is corrupted
**/
BOOLEAN
@@ -769,7 +769,7 @@ IsCapsuleCorrupted ( capsule gets coalesced. This can be useful in narrowing down
where capsule data corruption occurs.
- The test pattern mode fills in memory with a counting UINT32 value.
+ The test pattern mode fills in memory with a counting UINT32 value.
If the capsule is not divided up in a multiple of 4-byte blocks, then
things get messy doing the check. Therefore there are some cases
here where we just give up and skip the pre-coalesce check.
@@ -865,7 +865,7 @@ EFI_STATUS BuildCapsuleDescriptors (
IN EFI_PHYSICAL_ADDRESS *BlockListBuffer,
IN MEMORY_RESOURCE_DESCRIPTOR *MemoryResource,
- OUT EFI_CAPSULE_BLOCK_DESCRIPTOR **BlockDescriptorList
+ OUT EFI_CAPSULE_BLOCK_DESCRIPTOR **BlockDescriptorList
)
{
UINTN Index;
@@ -908,7 +908,7 @@ BuildCapsuleDescriptors ( }
Index ++;
}
-
+
if (HeadBlock != NULL) {
*BlockDescriptorList = HeadBlock;
return EFI_SUCCESS;
@@ -930,7 +930,7 @@ BuildCapsuleDescriptors ( | ------------------------- | |
| | Capsule [0] | | |
| ------------------------- | |
- | Capsule Image | |
+ | Capsule Image | |
CapsuleImageBase-->+---------------------------+
| ------------------------- | |
| | CapsuleOffset[Num-1] | | |
@@ -1004,9 +1004,9 @@ CapsuleDataCoalesce ( UINT8 *DestPtr;
UINTN DestLength;
UINT8 *RelocPtr;
- UINTN CapsuleTimes;
- UINT64 SizeLeft;
- UINT64 CapsuleImageSize;
+ UINTN CapsuleTimes;
+ UINT64 SizeLeft;
+ UINT64 CapsuleImageSize;
UINTN CapsuleSize;
UINTN CapsuleNumber;
UINTN DescriptorsSize;
@@ -1265,7 +1265,7 @@ CapsuleDataCoalesce ( //
//Here is the end of the current capsule image.
//
- CapsuleBeginFlag = TRUE;
+ CapsuleBeginFlag = TRUE;
}
} else {
//
|