MdeModulePkg: Source fixes and cleanup for ARMGCC compiles
- Fix EFI_IPv4_ADDRESS usages to use a macro to copy the structure instead of direct assignment, to avoid runtime alignment errors. - Fix a EFI_INPUT_KEY usage in TerminalDxe to use CopyMem() to copy the structure instead of direct assignment, to avoid runtime alignment error. - Delete excess local variables that are initialized but otherwise unused. - CompilerIntrinsicsLib library now imported for AARCH64, as well as ARM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Randy Pawell <randy_pawell@hp.com> Reviewed-by: Olivier Martin <Olivier.Martin@arm.com> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16471 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
CapsuleDataCoalesce() will do basic validation before coalesce capsule data
|
||||
into memory.
|
||||
|
||||
(C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>
|
||||
Copyright (c) 2011 - 2014, 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
|
||||
@@ -960,7 +961,6 @@ CapsuleDataCoalesce (
|
||||
UINT8 *DestPtr;
|
||||
UINTN DestLength;
|
||||
UINT8 *RelocPtr;
|
||||
UINT64 *AddDataPtr;
|
||||
UINTN CapsuleTimes;
|
||||
UINT64 SizeLeft;
|
||||
UINT64 CapsuleImageSize;
|
||||
@@ -986,7 +986,6 @@ CapsuleDataCoalesce (
|
||||
CapsuleTimes = 0;
|
||||
CapsuleImageSize = 0;
|
||||
PrivateDataPtr = NULL;
|
||||
AddDataPtr = NULL;
|
||||
CapsuleHeader = NULL;
|
||||
CapsuleBeginFlag = TRUE;
|
||||
CapsuleSize = 0;
|
||||
|
Reference in New Issue
Block a user