diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-11-28 14:23:32 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-11-29 18:49:35 +0100 |
commit | a21eb02d0a3c374213b0e3007273b0877ff7955f (patch) | |
tree | 125f387a2fadd19e7d8d3f3b6b0db316592a5bf9 /EmbeddedPkg/TemplateSec/TemplateSec.c | |
parent | e979ea74aa1420dbb3747bd61ef129f353238b51 (diff) | |
download | edk2-a21eb02d0a3c374213b0e3007273b0877ff7955f.tar.gz edk2-a21eb02d0a3c374213b0e3007273b0877ff7955f.tar.bz2 edk2-a21eb02d0a3c374213b0e3007273b0877ff7955f.zip |
EmbeddedPkg/TemplateSec: remove unused module
Remove this module: it is unused, and should not be used as an
example going forward.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'EmbeddedPkg/TemplateSec/TemplateSec.c')
-rw-r--r-- | EmbeddedPkg/TemplateSec/TemplateSec.c | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/EmbeddedPkg/TemplateSec/TemplateSec.c b/EmbeddedPkg/TemplateSec/TemplateSec.c deleted file mode 100644 index c63adbb6f9..0000000000 --- a/EmbeddedPkg/TemplateSec/TemplateSec.c +++ /dev/null @@ -1,76 +0,0 @@ -/** @file
-
- Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
-
- 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.
-
-**/
-
-#include <PiPei.h>
-
-#include <Library/DebugLib.h>
-#include <Library/PrePiLib.h>
-#include <Library/PcdLib.h>
-
-#include <Ppi/GuidedSectionExtraction.h>
-
-VOID
-_ModuleEntryPoint (
- VOID
- )
-{
-}
-
-VOID
-CEntryPoint (
- VOID *MemoryBase,
- UINTN MemorySize,
- VOID *StackBase,
- UINTN StackSize
- )
-{
- EFI_PHYSICAL_ADDRESS MemoryBegin;
- UINT64 MemoryLength;
- VOID *HobBase;
-
- //
- // Boot strap the C environment so the other library services will work properly.
- //
- MemoryBegin = (EFI_PHYSICAL_ADDRESS)(UINTN)MemoryBase;
- MemoryLength = (UINT64)MemorySize;
- HobBase = (VOID *)(UINTN)(FixedPcdGet32(PcdEmbeddedFdBaseAddress) + FixedPcdGet32(PcdEmbeddedFdSize));
- CreateHobList (MemoryBase, MemorySize, HobBase, StackBase);
-
- MemoryBegin = (EFI_PHYSICAL_ADDRESS)(UINTN)StackBase;
- MemoryLength = (UINT64)StackSize;
- UpdateStackHob (MemoryBegin, MemoryLength);
-
- DEBUG ((DEBUG_ERROR, "CEntryPoint (%x,%x,%x,%x)\n", MemoryBase, MemorySize, StackBase, StackSize));
-
- //
- // Add your C code stuff here....
- //
-
-
- //
- // Load the DXE Core and transfer control to it
- //
-
- // Give the DXE Core access to our DEBUG and ASSERT infrastructure so this will work prior
- // to the DXE version being loaded. Thus we close the debugging gap between phases.
- AddDxeCoreReportStatusCodeCallback ();
-
- //BuildFvHobs (PcdBfvBase, PcdBfvSize, NULL);
-
- LoadDxeCoreFromFv (NULL, 0);
-
- // DXE Core should always load and never return
- ASSERT (FALSE);
-}
-
|