/**@file\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
+Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+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
\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
UINTN\r
CountSeperatorsInString (\r
- IN const CHAR16 *String,\r
+ IN CONST CHAR16 *String,\r
IN CHAR16 Seperator\r
)\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