-/*++\r
+/**@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
Abstract:\r
Include file for Windows API based SEC\r
\r
---*/\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
#include <Ppi/StatusCode.h>\r
#include <Ppi/NtFwh.h>\r
+#include <Ppi/TemporaryRamSupport.h>\r
#include <Library/PcdLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/PrintLib.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
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
+SecTemporaryRamSupport (\r
+ IN CONST EFI_PEI_SERVICES **PeiServices,\r
+ IN EFI_PHYSICAL_ADDRESS TemporaryMemoryBase,\r
+ IN EFI_PHYSICAL_ADDRESS PermanentMemoryBase,\r
+ IN UINTN CopySize\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
-\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