diff options
author | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-15 22:28:07 +0000 |
---|---|---|
committer | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-15 22:28:07 +0000 |
commit | 128efbbcc2e3e8d4ee3c269563a5e2ee461dc3e3 (patch) | |
tree | aba3891b046fbc718a11f37778702ad653090ed6 /IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c | |
parent | 24098ac0b215eae67a3956a5edeb277c7ee51394 (diff) | |
download | edk2-platforms-128efbbcc2e3e8d4ee3c269563a5e2ee461dc3e3.tar.xz |
Clean up PERF macro usage. The macros were being used with 0 as the first parameter. This parameter is actually a void*. All of these instances were corrected to use NULL as the first parameter.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8954 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c index 25b5c63474..dcaa488894 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c @@ -1,5 +1,5 @@ /** @file
- This module produce main entry for BDS phase - BdsEntry.
+ This module produce main entry for BDS phase - BdsEntry.
When this module was dispatched by DxeCore, gEfiBdsArchProtocolGuid will be installed
which contains interface of BdsEntry.
After DxeCore finish DXE phase, gEfiBdsArchProtocolGuid->BdsEntry will be invoked
@@ -27,7 +27,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. ///
/// Note: Current BDS not directly get the BootMode, DefaultBoot,
/// TimeoutDefault, MemoryTestLevel value from the BDS arch protocol.
-/// Please refer to the library useage of BdsLibGetBootMode, BdsLibGetTimeout
+/// Please refer to the library useage of BdsLibGetBootMode, BdsLibGetTimeout
/// and PlatformBdsDiagnostics in BdsPlatform.c
///
EFI_HANDLE gBdsHandle = NULL;
@@ -136,14 +136,14 @@ BdsBootDeviceSelect ( //
UnicodeSPrint (Buffer, sizeof (Buffer), L"Boot%04x", *mBootNext);
BootOption = BdsLibVariableToOption (&BootLists, Buffer);
-
+
//
// If fail to get boot option from variable, just return and do nothing.
//
if (BootOption == NULL) {
return;
}
-
+
BootOption->BootCurrent = *mBootNext;
}
//
@@ -231,7 +231,7 @@ BdsBootDeviceSelect ( //
// Call platform action to indicate the boot success
//
- BootOption->StatusString = GetStringById (STRING_TOKEN (STR_BOOT_SUCCEEDED));
+ BootOption->StatusString = GetStringById (STRING_TOKEN (STR_BOOT_SUCCEEDED));
PlatformBdsBootSuccess (BootOption);
//
@@ -286,8 +286,8 @@ BdsEntry ( //
// Insert the performance probe
//
- PERF_END (0, "DXE", NULL, 0);
- PERF_START (0, "BDS", NULL, 0);
+ PERF_END (NULL, "DXE", NULL, 0);
+ PERF_START (NULL, "BDS", NULL, 0);
//
// Initialize the global system boot option and driver option
@@ -316,11 +316,11 @@ BdsEntry ( //
// Do the platform init, can be customized by OEM/IBV
//
- PERF_START (0, "PlatformBds", "BDS", 0);
+ PERF_START (NULL, "PlatformBds", "BDS", 0);
PlatformBdsInit ();
InitializeHwErrRecSupport();
-
+
//
// bugbug: platform specific code
// Initialize the platform specific string and language
@@ -351,7 +351,7 @@ BdsEntry ( // Setup some platform policy here
//
PlatformBdsPolicyBehavior (&DriverOptionList, &BootOptionList, ProcessCapsules, BdsMemoryTest);
- PERF_END (0, "PlatformBds", "BDS", 0);
+ PERF_END (NULL, "PlatformBds", "BDS", 0);
//
// BDS select the boot device to load OS
|