/**@file\r
\r
-Copyright (c) 2006, 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
-http://opensource.org/licenses/bsd-license.php \r
- \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
+Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
\r
Module Name:\r
**/\r
\r
#include <stdio.h>\r
-#include <Base.h>\r
#include <PiPei.h>\r
-#include <PiDxe.h>\r
#include <WinNtPeim.h>\r
+#include <Guid/StatusCodeDataTypeDebug.h>\r
#include <Library/BaseLib.h>\r
#include <Library/PeCoffLib.h>\r
-#include <Guid/PeiPeCoffLoader.h>\r
#include <Ppi/NtPeiLoadFile.h>\r
#include <Ppi/NtAutoscan.h>\r
#include <Ppi/NtThunk.h>\r
\r
#include <IndustryStandard/PeImage.h>\r
\r
-\r
#define STACK_SIZE 0x20000 \r
\r
typedef struct {\r
;\r
\r
UINTN\r
-CountSeperatorsInString (\r
+CountSeparatorsInString (\r
IN CONST CHAR16 *String,\r
- IN CHAR16 Seperator\r
+ IN CHAR16 Separator\r
)\r
/*++\r
\r
Arguments:\r
\r
String - TODO: add argument description\r
- Seperator - TODO: add argument description\r
+ Separator - TODO: add argument description\r
\r
Returns:\r
\r
--*/\r
;\r
\r
-EFI_STATUS\r
-EFIAPI\r
-SecNt32PeCoffGetImageInfo (\r
- IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This,\r
- IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
- );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-SecNt32PeCoffLoadImage (\r
- IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This,\r
- IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
- );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-SecNt32PeCoffRelocateImage (\r
- IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This,\r
- IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
- );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-SecNt32PeCoffUnloadimage (\r
- IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This,\r
- IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
- );\r
-\r
EFI_STATUS\r
EFIAPI\r
SecTemporaryRamSupport (\r
IN UINTN CopySize\r
);\r
\r
-typedef struct {\r
- EFI_PEI_PE_COFF_LOADER_PROTOCOL PeCoff;\r
- VOID *ModHandle;\r
-} EFI_PEI_PE_COFF_LOADER_PROTOCOL_INSTANCE;\r
\r
extern EFI_WIN_NT_THUNK_PROTOCOL *gWinNt;\r