Update code to support VS2013 tool chain.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15695 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -26,7 +26,7 @@
|
|||||||
Depex - Dependency Expresion.
|
Depex - Dependency Expresion.
|
||||||
SOR - Schedule On Request - Don't schedule if this bit is set.
|
SOR - Schedule On Request - Don't schedule if this bit is set.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -1142,6 +1142,8 @@ CoreFwVolEventProtocolNotify (
|
|||||||
VOID *DepexBuffer;
|
VOID *DepexBuffer;
|
||||||
KNOWN_HANDLE *KnownHandle;
|
KNOWN_HANDLE *KnownHandle;
|
||||||
|
|
||||||
|
FvHandle = NULL;
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
BufferSize = sizeof (EFI_HANDLE);
|
BufferSize = sizeof (EFI_HANDLE);
|
||||||
Status = CoreLocateHandle (
|
Status = CoreLocateHandle (
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
the Dxe Core. The mArchProtocols[] array represents a list of
|
the Dxe Core. The mArchProtocols[] array represents a list of
|
||||||
events that represent the Architectural Protocols.
|
events that represent the Architectural Protocols.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -122,6 +122,8 @@ GenericProtocolNotify (
|
|||||||
LIST_ENTRY *Link;
|
LIST_ENTRY *Link;
|
||||||
LIST_ENTRY TempLinkNode;
|
LIST_ENTRY TempLinkNode;
|
||||||
|
|
||||||
|
Protocol = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get Entry from Context
|
// Get Entry from Context
|
||||||
//
|
//
|
||||||
|
@ -416,6 +416,8 @@ CoreConnectSingleController (
|
|||||||
DriverBindingHandleBuffer = NULL;
|
DriverBindingHandleBuffer = NULL;
|
||||||
NumberOfSortedDriverBindingProtocols = 0;
|
NumberOfSortedDriverBindingProtocols = 0;
|
||||||
SortedDriverBindingProtocols = NULL;
|
SortedDriverBindingProtocols = NULL;
|
||||||
|
PlatformDriverOverride = NULL;
|
||||||
|
NewDriverBindingHandleBuffer = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get list of all Driver Binding Protocol Instances
|
// Get list of all Driver Binding Protocol Instances
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Locate handle functions
|
Locate handle functions
|
||||||
|
|
||||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -449,6 +449,7 @@ CoreLocateDevicePath (
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Handles = NULL;
|
||||||
BestDevice = NULL;
|
BestDevice = NULL;
|
||||||
SourcePath = *DevicePath;
|
SourcePath = *DevicePath;
|
||||||
TmpDevicePath = SourcePath;
|
TmpDevicePath = SourcePath;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Core image handling services to load and unload PeImage.
|
Core image handling services to load and unload PeImage.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -854,6 +854,9 @@ CoreUnloadAndCloseImage (
|
|||||||
UINTN OpenInfoCount;
|
UINTN OpenInfoCount;
|
||||||
UINTN OpenInfoIndex;
|
UINTN OpenInfoIndex;
|
||||||
|
|
||||||
|
HandleBuffer = NULL;
|
||||||
|
ProtocolGuidArray = NULL;
|
||||||
|
|
||||||
if (Image->Ebc != NULL) {
|
if (Image->Ebc != NULL) {
|
||||||
//
|
//
|
||||||
// If EBC protocol exists we must perform cleanups for this image.
|
// If EBC protocol exists we must perform cleanups for this image.
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
3) A support protocol is not found, and the data is not available to be read
|
3) A support protocol is not found, and the data is not available to be read
|
||||||
without it. This results in EFI_PROTOCOL_ERROR.
|
without it. This results in EFI_PROTOCOL_ERROR.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -513,6 +513,8 @@ VerifyGuidedSectionGuid (
|
|||||||
VOID *Interface;
|
VOID *Interface;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
|
Interface = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check if there is the Guided Section GUID configuration table recorded the GUID itself.
|
// Check if there is the Guided Section GUID configuration table recorded the GUID itself.
|
||||||
//
|
//
|
||||||
@ -1229,6 +1231,7 @@ GetSection (
|
|||||||
EFI_COMMON_SECTION_HEADER *Section;
|
EFI_COMMON_SECTION_HEADER *Section;
|
||||||
|
|
||||||
|
|
||||||
|
ChildStreamNode = NULL;
|
||||||
OldTpl = CoreRaiseTpl (TPL_NOTIFY);
|
OldTpl = CoreRaiseTpl (TPL_NOTIFY);
|
||||||
Instance = SectionInstance + 1;
|
Instance = SectionInstance + 1;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Support routines for memory allocation routines based
|
Support routines for memory allocation routines based
|
||||||
on boot services for Dxe phase drivers.
|
on boot services for Dxe phase drivers.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -375,6 +375,8 @@ InternalAllocatePool (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
VOID *Memory;
|
VOID *Memory;
|
||||||
|
|
||||||
|
Memory = NULL;
|
||||||
|
|
||||||
Status = CoreAllocatePool (MemoryType, AllocationSize, &Memory);
|
Status = CoreAllocatePool (MemoryType, AllocationSize, &Memory);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
Memory = NULL;
|
Memory = NULL;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Support routines for memory allocation routines based on SMM Core internal functions.
|
Support routines for memory allocation routines based on SMM Core internal functions.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -478,6 +478,8 @@ InternalAllocatePool (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
VOID *Memory;
|
VOID *Memory;
|
||||||
|
|
||||||
|
Memory = NULL;
|
||||||
|
|
||||||
Status = SmmAllocatePool (MemoryType, AllocationSize, &Memory);
|
Status = SmmAllocatePool (MemoryType, AllocationSize, &Memory);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
Memory = NULL;
|
Memory = NULL;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
ACPI Sdt Protocol Driver
|
ACPI Sdt Protocol Driver
|
||||||
|
|
||||||
Copyright (c) 2010, Intel Corporation. All rights reserved. <BR>
|
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved. <BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -852,6 +852,7 @@ SdtFindPathFromNonRoot (
|
|||||||
VOID *Buffer;
|
VOID *Buffer;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
|
Buffer = NULL;
|
||||||
AmlHandle = (EFI_AML_HANDLE *)HandleIn;
|
AmlHandle = (EFI_AML_HANDLE *)HandleIn;
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -912,6 +913,7 @@ SdtFindPathFromRoot (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
VOID *Buffer;
|
VOID *Buffer;
|
||||||
|
|
||||||
|
Buffer = NULL;
|
||||||
AmlHandle = (EFI_AML_HANDLE *)HandleIn;
|
AmlHandle = (EFI_AML_HANDLE *)HandleIn;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
ACPI Sdt Protocol Driver
|
ACPI Sdt Protocol Driver
|
||||||
|
|
||||||
Copyright (c) 2010, Intel Corporation. All rights reserved. <BR>
|
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved. <BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -189,6 +189,8 @@ AmlGetChildFromObjectChildList (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT8 *CurrentBuffer;
|
UINT8 *CurrentBuffer;
|
||||||
|
|
||||||
|
CurrentBuffer = NULL;
|
||||||
|
|
||||||
if ((AmlParentHandle->AmlByteEncoding->Attribute & AML_HAS_CHILD_OBJ) == 0) {
|
if ((AmlParentHandle->AmlByteEncoding->Attribute & AML_HAS_CHILD_OBJ) == 0) {
|
||||||
//
|
//
|
||||||
// No ObjectList
|
// No ObjectList
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
ACPI Sdt Protocol Driver
|
ACPI Sdt Protocol Driver
|
||||||
|
|
||||||
Copyright (c) 2010, Intel Corporation. All rights reserved. <BR>
|
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved. <BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -300,6 +300,8 @@ AmlConstructNodeListForChild (
|
|||||||
EFI_AML_HANDLE *AmlChildHandle;
|
EFI_AML_HANDLE *AmlChildHandle;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
|
CurrentBuffer = NULL;
|
||||||
|
AmlChildHandle = NULL;
|
||||||
AmlByteEncoding = AmlHandle->AmlByteEncoding;
|
AmlByteEncoding = AmlHandle->AmlByteEncoding;
|
||||||
Buffer = AmlHandle->Buffer;
|
Buffer = AmlHandle->Buffer;
|
||||||
BufferSize = AmlHandle->Size;
|
BufferSize = AmlHandle->Size;
|
||||||
|
@ -671,6 +671,7 @@ AppendAltCfgString (
|
|||||||
UINTN ValueWidth;
|
UINTN ValueWidth;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
|
TmpBuffer = NULL;
|
||||||
StringPtr = *RequestResult;
|
StringPtr = *RequestResult;
|
||||||
StringPtr = StrStr (StringPtr, L"OFFSET");
|
StringPtr = StrStr (StringPtr, L"OFFSET");
|
||||||
BlockSize = sizeof (DRIVER_SAMPLE_CONFIGURATION);
|
BlockSize = sizeof (DRIVER_SAMPLE_CONFIGURATION);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Contains code that implements the virtual machine.
|
Contains code that implements the virtual machine.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -1827,6 +1827,7 @@ ExecuteBREAK (
|
|||||||
UINT64 U64EbcEntryPoint;
|
UINT64 U64EbcEntryPoint;
|
||||||
INT32 Offset;
|
INT32 Offset;
|
||||||
|
|
||||||
|
Thunk = NULL;
|
||||||
Operands = GETOPERANDS (VmPtr);
|
Operands = GETOPERANDS (VmPtr);
|
||||||
switch (Operands) {
|
switch (Operands) {
|
||||||
//
|
//
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
If one of them is not satisfied, FtwWrite may fail.
|
If one of them is not satisfied, FtwWrite may fail.
|
||||||
Usually, Spare area only takes one block. That's SpareAreaLength = BlockSize, NumberOfSpareBlock = 1.
|
Usually, Spare area only takes one block. That's SpareAreaLength = BlockSize, NumberOfSpareBlock = 1.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -227,6 +227,8 @@ FaultTolerantWriteInitialize (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_FTW_DEVICE *FtwDevice;
|
EFI_FTW_DEVICE *FtwDevice;
|
||||||
|
|
||||||
|
FtwDevice = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Allocate private data structure for FTW protocol and do some initialization
|
// Allocate private data structure for FTW protocol and do some initialization
|
||||||
//
|
//
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
Caution: This module requires additional review when modified.
|
Caution: This module requires additional review when modified.
|
||||||
This driver need to make sure the CommBuffer is not in the SMRAM range.
|
This driver need to make sure the CommBuffer is not in the SMRAM range.
|
||||||
|
|
||||||
Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -274,6 +274,8 @@ GetFvbByAddressAndAttribute (
|
|||||||
EFI_FVB_ATTRIBUTES_2 FvbAttributes;
|
EFI_FVB_ATTRIBUTES_2 FvbAttributes;
|
||||||
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *Fvb;
|
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *Fvb;
|
||||||
|
|
||||||
|
HandleBuffer = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Locate all handles of SMM Fvb protocol.
|
// Locate all handles of SMM Fvb protocol.
|
||||||
//
|
//
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Internal generic functions to operate flash block.
|
Internal generic functions to operate flash block.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -164,6 +164,7 @@ GetFvbByAddress (
|
|||||||
|
|
||||||
*FvBlock = NULL;
|
*FvBlock = NULL;
|
||||||
FvbHandle = NULL;
|
FvbHandle = NULL;
|
||||||
|
HandleBuffer = NULL;
|
||||||
//
|
//
|
||||||
// Locate all handles of Fvb protocol
|
// Locate all handles of Fvb protocol
|
||||||
//
|
//
|
||||||
@ -1019,6 +1020,8 @@ FindFvbForFtw (
|
|||||||
EFI_FV_BLOCK_MAP_ENTRY *FvbMapEntry;
|
EFI_FV_BLOCK_MAP_ENTRY *FvbMapEntry;
|
||||||
UINT32 LbaIndex;
|
UINT32 LbaIndex;
|
||||||
|
|
||||||
|
HandleBuffer = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get all FVB handle.
|
// Get all FVB handle.
|
||||||
//
|
//
|
||||||
|
@ -2329,6 +2329,8 @@ GetBlockElement (
|
|||||||
IFR_BLOCK_DATA *NextBlockData;
|
IFR_BLOCK_DATA *NextBlockData;
|
||||||
UINTN Length;
|
UINTN Length;
|
||||||
|
|
||||||
|
TmpBuffer = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Init RequestBlockArray
|
// Init RequestBlockArray
|
||||||
//
|
//
|
||||||
@ -4432,6 +4434,8 @@ HiiBlockToConfig (
|
|||||||
CHAR16 *TemString;
|
CHAR16 *TemString;
|
||||||
CHAR16 TemChar;
|
CHAR16 TemChar;
|
||||||
|
|
||||||
|
TmpBuffer = NULL;
|
||||||
|
|
||||||
if (This == NULL || Progress == NULL || Config == NULL) {
|
if (This == NULL || Progress == NULL || Config == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
@ -4728,6 +4732,8 @@ HiiConfigToBlock (
|
|||||||
UINTN BufferSize;
|
UINTN BufferSize;
|
||||||
UINTN MaxBlockSize;
|
UINTN MaxBlockSize;
|
||||||
|
|
||||||
|
TmpBuffer = NULL;
|
||||||
|
|
||||||
if (This == NULL || BlockSize == NULL || Progress == NULL) {
|
if (This == NULL || BlockSize == NULL || Progress == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
@ -2420,6 +2420,11 @@ AddPackages (
|
|||||||
StringPkgIsAdd = FALSE;
|
StringPkgIsAdd = FALSE;
|
||||||
FontPackage = NULL;
|
FontPackage = NULL;
|
||||||
StringPackage = NULL;
|
StringPackage = NULL;
|
||||||
|
GuidPackage = NULL;
|
||||||
|
FormPackage = NULL;
|
||||||
|
ImagePackage = NULL;
|
||||||
|
SimpleFontPackage = NULL;
|
||||||
|
KeyboardLayoutPackage = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Process the package list header
|
// Process the package list header
|
||||||
|
@ -393,6 +393,8 @@ IScsiReceiveLoginRsp (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
NET_BUF *Pdu;
|
NET_BUF *Pdu;
|
||||||
|
|
||||||
|
Pdu = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Receive the iSCSI login response.
|
// Receive the iSCSI login response.
|
||||||
//
|
//
|
||||||
|
@ -2372,6 +2372,8 @@ EvaluateExpression (
|
|||||||
EFI_HII_VALUE QuestionVal;
|
EFI_HII_VALUE QuestionVal;
|
||||||
EFI_DEVICE_PATH_PROTOCOL *DevicePath;
|
EFI_DEVICE_PATH_PROTOCOL *DevicePath;
|
||||||
|
|
||||||
|
StrPtr = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Save current stack offset.
|
// Save current stack offset.
|
||||||
//
|
//
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Handles non-volatile variable store garbage collection, using FTW
|
Handles non-volatile variable store garbage collection, using FTW
|
||||||
(Fault Tolerant Write) protocol.
|
(Fault Tolerant Write) protocol.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -47,6 +47,7 @@ GetLbaAndOffsetByAddress (
|
|||||||
EFI_FV_BLOCK_MAP_ENTRY *FvbMapEntry;
|
EFI_FV_BLOCK_MAP_ENTRY *FvbMapEntry;
|
||||||
UINT32 LbaIndex;
|
UINT32 LbaIndex;
|
||||||
|
|
||||||
|
Fvb = NULL;
|
||||||
*Lba = (EFI_LBA) (-1);
|
*Lba = (EFI_LBA) (-1);
|
||||||
*Offset = 0;
|
*Offset = 0;
|
||||||
|
|
||||||
|
@ -3344,6 +3344,9 @@ GetFvbInfoByAddress (
|
|||||||
EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader;
|
EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader;
|
||||||
EFI_FVB_ATTRIBUTES_2 Attributes;
|
EFI_FVB_ATTRIBUTES_2 Attributes;
|
||||||
|
|
||||||
|
Fvb = NULL;
|
||||||
|
HandleBuffer = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get all FVB handles.
|
// Get all FVB handles.
|
||||||
//
|
//
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
and volatile storage space and install variable architecture protocol
|
and volatile storage space and install variable architecture protocol
|
||||||
based on SMM variable module.
|
based on SMM variable module.
|
||||||
|
|
||||||
Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -195,6 +195,7 @@ VariableLockRequestToLock (
|
|||||||
}
|
}
|
||||||
|
|
||||||
VariableNameSize = StrSize (VariableName);
|
VariableNameSize = StrSize (VariableName);
|
||||||
|
VariableToLock = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// If VariableName exceeds SMM payload limit. Return failure
|
// If VariableName exceeds SMM payload limit. Return failure
|
||||||
@ -272,6 +273,7 @@ RuntimeServiceGetVariable (
|
|||||||
|
|
||||||
TempDataSize = *DataSize;
|
TempDataSize = *DataSize;
|
||||||
VariableNameSize = StrSize (VariableName);
|
VariableNameSize = StrSize (VariableName);
|
||||||
|
SmmVariableHeader = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// If VariableName exceeds SMM payload limit. Return failure
|
// If VariableName exceeds SMM payload limit. Return failure
|
||||||
@ -374,6 +376,7 @@ RuntimeServiceGetNextVariableName (
|
|||||||
|
|
||||||
OutVariableNameSize = *VariableNameSize;
|
OutVariableNameSize = *VariableNameSize;
|
||||||
InVariableNameSize = StrSize (VariableName);
|
InVariableNameSize = StrSize (VariableName);
|
||||||
|
SmmGetNextVariableName = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// If input string exceeds SMM payload limit. Return failure
|
// If input string exceeds SMM payload limit. Return failure
|
||||||
@ -491,6 +494,7 @@ RuntimeServiceSetVariable (
|
|||||||
}
|
}
|
||||||
|
|
||||||
VariableNameSize = StrSize (VariableName);
|
VariableNameSize = StrSize (VariableName);
|
||||||
|
SmmVariableHeader = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// If VariableName or DataSize exceeds SMM payload limit. Return failure
|
// If VariableName or DataSize exceeds SMM payload limit. Return failure
|
||||||
@ -561,6 +565,8 @@ RuntimeServiceQueryVariableInfo (
|
|||||||
UINTN PayloadSize;
|
UINTN PayloadSize;
|
||||||
SMM_VARIABLE_COMMUNICATE_QUERY_VARIABLE_INFO *SmmQueryVariableInfo;
|
SMM_VARIABLE_COMMUNICATE_QUERY_VARIABLE_INFO *SmmQueryVariableInfo;
|
||||||
|
|
||||||
|
SmmQueryVariableInfo = NULL;
|
||||||
|
|
||||||
if(MaximumVariableStorageSize == NULL || RemainingVariableStorageSize == NULL || MaximumVariableSize == NULL || Attributes == 0) {
|
if(MaximumVariableStorageSize == NULL || RemainingVariableStorageSize == NULL || MaximumVariableSize == NULL || Attributes == 0) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user