#/** @file\r
-# Component description file for NULL Debug Library\r
+# Component description file for NULL PalCall Library.\r
#\r
-# Debug Library with empty functions.\r
-# Copyright (c) 2007, Intel Corporation.\r
+# PalCall Library with empty functions.\r
+# Copyright (c) 2007 - 2008, Intel Corporation.\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
#/** @file\r
-# Component description file for NULL PCD Library\r
+# Component description file for NULL PCD Library.\r
#\r
-# Copyright (c) 2007, Intel Corporation.\r
+# Copyright (c) 2007 - 2008, Intel Corporation.\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
DebugLib\r
BaseMemoryLib\r
\r
-\r
[Packages]\r
MdePkg/MdePkg.dec\r
\r
/** @file\r
A emptry template implementation of PCD Library.\r
\r
- Copyright (c) 2006, Intel Corporation\r
+ Copyright (c) 2006 - 2008, Intel Corporation\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
\r
**/\r
\r
-#include <PiPei.h>\r
+#include <Base.h>\r
+\r
#include <Library/DebugLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/BaseMemoryLib.h>\r
IN UINTN SkuId\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINT8 Value\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINT16 Value\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINT32 Value\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINT64 Value\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN VOID *Buffer\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return NULL;\r
}\r
IN BOOLEAN Value\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return FALSE;\r
}\r
IN UINT8 Value\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINT16 Value\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINT32 Value\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN UINT64 Value\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN VOID *Buffer\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return NULL;\r
}\r
IN BOOLEAN Value\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return FALSE;\r
}\r
IN PCD_CALLBACK NotificationFunction\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
}\r
\r
\r
IN PCD_CALLBACK NotificationFunction\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
}\r
\r
\r
IN UINTN TokenNumber\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return 0;\r
}\r
IN CONST GUID *Guid\r
)\r
{\r
- ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
+ ASSERT (FALSE);\r
\r
return NULL;\r
}\r
#/** @file\r
-# Component description file Base PE/Coff Get Entry Point Library\r
+# Component description file Base PE/Coff Get Entry Point Library.\r
#\r
# PE/COFF Entry Point Library implementation.\r
-# Copyright (c) 2007, Intel Corporation.\r
+# Copyright (c) 2007 - 2008, Intel Corporation.\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
/** @file\r
- Tiano PE/COFF loader.\r
-\r
- Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
+ Provides the services to get the entry point to a PE/COFF image that has either been \r
+ loaded into memory or is executing at it¡¯s linked address\r
+ Copyright (c) 2006 - 2008, Intel Corporation<BR>\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
\r
#include <Base.h>\r
\r
-\r
#include <Library/PeCoffGetEntryPointLib.h>\r
#include <Library/DebugLib.h>\r
\r
ASSERT (EntryPoint != NULL);\r
\r
DosHdr = (EFI_IMAGE_DOS_HEADER *)Pe32Data;\r
- if (EFI_IMAGE_DOS_SIGNATURE == DosHdr->e_magic) {\r
+ if (DosHdr->e_magic == EFI_IMAGE_DOS_SIGNATURE) {\r
//\r
// DOS image header is present, so read the PE header after the DOS image header.\r
//\r
ASSERT (Pe32Data != NULL);\r
\r
DosHdr = (EFI_IMAGE_DOS_HEADER *)Pe32Data;\r
- if (EFI_IMAGE_DOS_SIGNATURE == DosHdr->e_magic) {\r
+ if (DosHdr->e_magic == EFI_IMAGE_DOS_SIGNATURE) {\r
//\r
// DOS image header is present, so read the PE header after the DOS image header.\r
//\r
Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)Pe32Data;\r
}\r
\r
- if (EFI_TE_IMAGE_HEADER_SIGNATURE == Hdr.Te->Signature) {\r
+ if (Hdr.Te->Signature == EFI_TE_IMAGE_HEADER_SIGNATURE) {\r
return Hdr.Te->Machine;\r
- } else if (EFI_IMAGE_NT_SIGNATURE == Hdr.Pe32->Signature) {\r
+ } else if (Hdr.Pe32->Signature == EFI_IMAGE_NT_SIGNATURE) {\r
return Hdr.Pe32->FileHeader.Machine;\r
}\r
\r
NumberOfRvaAndSizes = 0;\r
\r
DosHdr = (EFI_IMAGE_DOS_HEADER *)Pe32Data;\r
- if (EFI_IMAGE_DOS_SIGNATURE == DosHdr->e_magic) {\r
+ if (DosHdr->e_magic == EFI_IMAGE_DOS_SIGNATURE) {\r
//\r
// DOS image header is present, so read the PE header after the DOS image header.\r
//\r
Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)Pe32Data;\r
}\r
\r
- if (EFI_TE_IMAGE_HEADER_SIGNATURE == Hdr.Te->Signature) {\r
+ if (Hdr.Te->Signature == EFI_TE_IMAGE_HEADER_SIGNATURE) {\r
if (Hdr.Te->DataDirectory[EFI_TE_IMAGE_DIRECTORY_ENTRY_DEBUG].VirtualAddress != 0) {\r
DirectoryEntry = &Hdr.Te->DataDirectory[EFI_TE_IMAGE_DIRECTORY_ENTRY_DEBUG];\r
TEImageAdjust = sizeof (EFI_TE_IMAGE_HEADER) - Hdr.Te->StrippedSize;\r
Hdr.Te->DataDirectory[EFI_TE_IMAGE_DIRECTORY_ENTRY_DEBUG].VirtualAddress +\r
TEImageAdjust);\r
}\r
- } else if (EFI_IMAGE_NT_SIGNATURE == Hdr.Pe32->Signature) {\r
+ } else if (Hdr.Pe32->Signature == EFI_IMAGE_NT_SIGNATURE) {\r
//\r
// NOTE: We use Machine field to identify PE32/PE32+, instead of Magic.\r
// It is due to backward-compatibility, for some system might\r
Magic = Hdr.Pe32->OptionalHeader.Magic;\r
}\r
\r
- if (EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC == Magic) {\r
+ if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) {\r
//\r
// Use PE32 offset get Debug Directory Entry\r
//\r
return NULL;\r
}\r
\r
- if (NULL == DebugEntry || NULL == DirectoryEntry) {\r
+ if (DebugEntry == NULL || DirectoryEntry == NULL) {\r
return NULL;\r
}\r
\r
#/** @file\r
+# Component description file Post Code Library.\r
#\r
-# Post Code Library that layers on top of a Debug Library instance.\r
+# The instance of Post Code Library that layers on top of a Debug Library instance.\r
# Copyright (c) 2007 - 2008, Intel Corporation.\r
#\r
# All rights reserved. This program and the accompanying materials\r
/** @file\r
- Base Post Code Library instance based on Debug Library.\r
+ The instance of Post Code Library that layers on top of a Debug Library instance.\r
\r
Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials \r
\r
**/\r
\r
-\r
-\r
#include <Base.h>\r
\r
-\r
#include <Library/PostCodeLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/PcdLib.h>\r
\r
@param Value The 32-bit value to write to the POST card.\r
\r
- @return Value The 32-bit value to write to the POST card.\r
+ @return The 32-bit value to write to the POST card.\r
\r
**/\r
UINT32\r
POST code value. This is an optional parameter that may \r
be NULL.\r
\r
- @return Value The 32-bit value to write to the POST card.\r
+ @return The 32-bit value to write to the POST card.\r
\r
**/\r
UINT32\r
\r
**/\r
\r
-\r
-\r
#include <Base.h>\r
\r
-\r
#include <Library/PostCodeLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/IoLib.h>\r
\r
@param Value The 32-bit value to write to the POST card.\r
\r
- @return Value The 32-bit value to write to the POST card.\r
+ @return The 32-bit value to write to the POST card.\r
\r
**/\r
UINT32\r
POST code value. This is an optional parameter that may \r
be NULL. Ihis parameter is ignored in this implementation. \r
\r
- @return Value The 32-bit value to write to the POST card.\r
+ @return The 32-bit value to write to the POST card.\r
\r
**/\r
UINT32\r