mirror of https://github.com/acidanthera/audk.git
1. Add some ASSERT();
2. Fix some typo. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7184 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
721dfef39e
commit
0d401d4d9c
|
@ -20,8 +20,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
@param ConVarName The name of the EFI variable.
|
@param ConVarName The name of the EFI variable.
|
||||||
|
|
||||||
@retval TRUE Set the EFI variabel as NV type.
|
@retval TRUE Set the EFI variable as NV type.
|
||||||
@retval FALSE EFI variabel as NV type can be set NonNV.
|
@retval FALSE EFI variable as NV type can be set NonNV.
|
||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsNvNeed (
|
IsNvNeed (
|
||||||
|
@ -279,8 +279,8 @@ BdsLibConnectConsoleVariable (
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function will search every simpletxt devive in current system,
|
This function will search every simpletext device in current system,
|
||||||
and make every simpletxt device as pertantial console device.
|
and make every simpletext device as pertantial console device.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
|
@ -300,7 +300,7 @@ BdsLibConnectAllConsoles (
|
||||||
ConDevicePath = NULL;
|
ConDevicePath = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Update all the console varables
|
// Update all the console variables
|
||||||
//
|
//
|
||||||
gBS->LocateHandleBuffer (
|
gBS->LocateHandleBuffer (
|
||||||
ByProtocol,
|
ByProtocol,
|
||||||
|
@ -767,7 +767,7 @@ EnableQuietBoot (
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Caculate the display position according to Attribute.
|
// Calculate the display position according to Attribute.
|
||||||
//
|
//
|
||||||
switch (Attribute) {
|
switch (Attribute) {
|
||||||
case EfiBadgingDisplayAttributeLeftTop:
|
case EfiBadgingDisplayAttributeLeftTop:
|
||||||
|
|
|
@ -59,8 +59,8 @@ BdsLibGetTimeout (
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The function will go through the driver optoin link list, load and start
|
The function will go through the driver option link list, load and start
|
||||||
every driver the driver optoin device path point to.
|
every driver the driver option device path point to.
|
||||||
|
|
||||||
@param BdsDriverLists The header of the current driver option link list
|
@param BdsDriverLists The header of the current driver option link list
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ BdsLibLoadDrivers (
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the Option Number that does not used.
|
Get the Option Number that does not used.
|
||||||
Try to locate the specific option variable one by one untile find a free number.
|
Try to locate the specific option variable one by one utile find a free number.
|
||||||
|
|
||||||
@param VariableName Indicate if the boot#### or driver#### option
|
@param VariableName Indicate if the boot#### or driver#### option
|
||||||
|
|
||||||
|
@ -508,11 +508,16 @@ BdsLibVariableToOption (
|
||||||
|
|
||||||
Option->Signature = BDS_LOAD_OPTION_SIGNATURE;
|
Option->Signature = BDS_LOAD_OPTION_SIGNATURE;
|
||||||
Option->DevicePath = AllocateZeroPool (GetDevicePathSize (DevicePath));
|
Option->DevicePath = AllocateZeroPool (GetDevicePathSize (DevicePath));
|
||||||
|
ASSERT(Option->DevicePath != NULL);
|
||||||
CopyMem (Option->DevicePath, DevicePath, GetDevicePathSize (DevicePath));
|
CopyMem (Option->DevicePath, DevicePath, GetDevicePathSize (DevicePath));
|
||||||
|
|
||||||
Option->Attribute = Attribute;
|
Option->Attribute = Attribute;
|
||||||
Option->Description = AllocateZeroPool (StrSize (Description));
|
Option->Description = AllocateZeroPool (StrSize (Description));
|
||||||
|
ASSERT(Option->Description != NULL);
|
||||||
CopyMem (Option->Description, Description, StrSize (Description));
|
CopyMem (Option->Description, Description, StrSize (Description));
|
||||||
|
|
||||||
Option->LoadOptions = AllocateZeroPool (LoadOptionsSize);
|
Option->LoadOptions = AllocateZeroPool (LoadOptionsSize);
|
||||||
|
ASSERT(Option->LoadOptions != NULL);
|
||||||
CopyMem (Option->LoadOptions, LoadOptions, LoadOptionsSize);
|
CopyMem (Option->LoadOptions, LoadOptions, LoadOptionsSize);
|
||||||
Option->LoadOptionsSize = LoadOptionsSize;
|
Option->LoadOptionsSize = LoadOptionsSize;
|
||||||
|
|
||||||
|
@ -828,6 +833,7 @@ BdsLibOutputStrings (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VA_END(Args);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue