summaryrefslogtreecommitdiff
path: root/DuetPkg/FSVariable
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-08 04:11:25 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-08 04:11:25 +0000
commit394bbc5930f78732f0bc5daf286beb3f8e39f27d (patch)
tree92889cc38410cb492cedf4df4a99143f35bbbf52 /DuetPkg/FSVariable
parent61e334303b59d28e0baa1737a5e5751aad301e32 (diff)
downloadedk2-platforms-394bbc5930f78732f0bc5daf286beb3f8e39f27d.tar.xz
1) Fix some casting working in X64 building
2) Use SetMem/CopyMem function to do structure initialization to avoid X64 compiler call standard C library. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5180 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/FSVariable')
-rw-r--r--DuetPkg/FSVariable/FSVariable.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/DuetPkg/FSVariable/FSVariable.c b/DuetPkg/FSVariable/FSVariable.c
index 085a492952..1ec2e56d3e 100644
--- a/DuetPkg/FSVariable/FSVariable.c
+++ b/DuetPkg/FSVariable/FSVariable.c
@@ -1165,7 +1165,11 @@ Returns:
return Status;
}
- VariableStoreEntry = FlashMapEntryData->Entries[0];
+ CopyMem(
+ (VOID*)&VariableStoreEntry,
+ (VOID*)&FlashMapEntryData->Entries[0],
+ sizeof(EFI_FLASH_SUBAREA_ENTRY)
+ );
//
// Mark the variable storage region of the FLASH as RUNTIME