--- /dev/null
+/** @file
+ File intentionally blank
+
+ Copyright (c) 2010, Apple Inc. All rights reserved.
+
+ All rights reserved. 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
+
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
--- /dev/null
+#/** @file\r
+# Hob lib that does not contain the APIs as they are already in the PrePiLib\r
+#\r
+# Copyright (c) 2008 - 2010, Apple, Inc.\r
+#\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+#\r
+#**/\r
+\r
+[Defines]\r
+ INF_VERSION = 0x00010005\r
+ BASE_NAME = PrePiLib\r
+ FILE_GUID = 1F3A3278-82EB-4C0D-86F1-5BCDA5846CB2\r
+ MODULE_TYPE = BASE\r
+ VERSION_STRING = 1.0\r
+ LIBRARY_CLASS = PrePiLib \r
+\r
+\r
+#\r
+# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+#\r
+\r
+[Sources.common]\r
+ Hob.c\r
+\r
+[Packages]\r
+ MdePkg/MdePkg.dec\r
+\r
+\r
+[LibraryClasses]\r
+ \r
+\r
#include <Library/UefiDecompressLib.h>
#include <Library/PeCoffLib.h>
#include <Library/CacheMaintenanceLib.h>
+#include <Library/TimerLib.h>
+#include <Library/PerformanceLib.h>
#include <Guid/MemoryAllocationHob.h>
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)) {
Hob = GetHobList ();
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 {
//
UpdateStackHob ((EFI_PHYSICAL_ADDRESS)(UINTN) BaseOfStack, StackSize);
+
+ if (PerformanceMeasurementEnabled ()) {
+ Tick = GetPerformanceCounter ();
+ }
+ PERF_END (NULL, "SEC", NULL, Tick);
+
SwitchStack (
(SWITCH_STACK_ENTRY_POINT)(UINTN)EntryPoint,
Hob,
PrintLib\r
SerialPortLib\r
ExtractGuidedSectionLib\r
+ TimerLib\r
+ PerformanceLib\r
+ \r
\r
[Guids]\r
gEfiHobMemoryAllocModuleGuid\r