]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/PrePiLib/PrePiLib.c
EmbeddedPkg/PrePiLib: Ensure FvImageInfo has been initialized to zero
[mirror_edk2.git] / EmbeddedPkg / Library / PrePiLib / PrePiLib.c
index a359d5bdb0bc426757309889ca270dda6f3b5d56..e46cafec3bbeb1ce5bc6774987dc5b8c755605be 100644 (file)
@@ -1,8 +1,8 @@
 /** @file
 
-  Copyright (c) 2008-2009, Apple Inc. All rights reserved.
+  Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
   
-  All rights reserved. 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
   which accompanies this distribution.  The full text of the license may be found at
   http://opensource.org/licenses/bsd-license.php
@@ -22,15 +22,10 @@ EFI_STATUS
 EFIAPI
 
 SecWinNtPeiLoadFile (
-
   IN  VOID                    *Pe32Data,
-
   IN  EFI_PHYSICAL_ADDRESS    *ImageAddress,
-
   IN  UINT64                  *ImageSize,
-
   IN  EFI_PHYSICAL_ADDRESS    *EntryPoint
-
   );
 
 
@@ -115,10 +110,6 @@ LoadDxeCoreFromFfsFile (
   VOID                    *TopOfStack;
   VOID                    *Hob;
   EFI_FV_FILE_INFO        FvFileInfo;
-  UINT64                  Tick;
-
-  Tick = 0;
-  PERF_START (NULL, "SEC", NULL, 1);
 
   Status = FfsFindSectionData (EFI_SECTION_PE32, FileHandle, &PeCoffImage);
   if (EFI_ERROR  (Status)) {
@@ -144,12 +135,6 @@ LoadDxeCoreFromFfsFile (
   if (StackSize == 0) {
     // User the current stack
   
-  
-    if (PerformanceMeasurementEnabled ()) {
-      Tick = GetPerformanceCounter ();
-    }
-    PERF_END (NULL, "SEC", NULL, Tick);
-
     ((DXE_CORE_ENTRY_POINT)(UINTN)EntryPoint) (Hob);
   } else {
     
@@ -170,12 +155,6 @@ LoadDxeCoreFromFfsFile (
     // Update the contents of BSP stack HOB to reflect the real stack info passed to DxeCore.
     //    
     UpdateStackHob ((EFI_PHYSICAL_ADDRESS)(UINTN) BaseOfStack, StackSize);
-    
-
-    if (PerformanceMeasurementEnabled ()) {
-      Tick = GetPerformanceCounter ();
-    }
-    PERF_END (NULL, "SEC", NULL, Tick);
 
     SwitchStack (
       (SWITCH_STACK_ENTRY_POINT)(UINTN)EntryPoint,