Add SecCore module that uses the PlatformSecLib class for platform specific actions. The SecCore module also uses a new PCD to configure the size of the stack used in the SEC phase. If the stack size PCD is set to 0, the stack is configured to use half of the available temporary RAM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18636 6f19259b-4bc3-4df7-8a09-765794883524
73 lines
2.1 KiB
INI
73 lines
2.1 KiB
INI
## @file
|
|
# SecCore module that implements the SEC phase.
|
|
#
|
|
# This is the first module taking control of the platform upon power-on/reset.
|
|
# It implements the first phase of the security phase. The entry point function is
|
|
# _ModuleEntryPoint in PlatformSecLib. The entry point function will switch to
|
|
# protected mode, setup flat memory model, enable temporary memory and
|
|
# call into SecStartup().
|
|
#
|
|
# Copyright (c) 2006 - 2015, Intel Corporation. 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.
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = SecCore
|
|
MODULE_UNI_FILE = SecCore.uni
|
|
FILE_GUID = 1BA0062E-C779-4582-8566-336AE8F78F09
|
|
MODULE_TYPE = SEC
|
|
VERSION_STRING = 1.0
|
|
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
|
|
#
|
|
|
|
[Sources]
|
|
SecMain.c
|
|
SecMain.h
|
|
FindPeiCore.c
|
|
|
|
[Sources.IA32]
|
|
Ia32/ResetVec.asm16 | MSFT
|
|
Ia32/ResetVec.asm16 | INTEL
|
|
Ia32/ResetVec.nasmb | GCC
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
UefiCpuPkg/UefiCpuPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseMemoryLib
|
|
DebugLib
|
|
BaseLib
|
|
PlatformSecLib
|
|
PcdLib
|
|
DebugAgentLib
|
|
UefiCpuLib
|
|
PeCoffGetEntryPointLib
|
|
PeCoffExtraActionLib
|
|
CpuExceptionHandlerLib
|
|
ReportStatusCodeLib
|
|
|
|
[Ppis]
|
|
gEfiSecPlatformInformationPpiGuid ## PRODUCES
|
|
gEfiTemporaryRamDonePpiGuid ## PRODUCES
|
|
|
|
[Pcd]
|
|
gUefiCpuPkgTokenSpaceGuid.PcdPeiTemporaryRamStackSize ## CONSUMES
|
|
|
|
[UserExtensions.TianoCore."ExtraFiles"]
|
|
SecCoreExtra.uni
|