Skip to content

Commit 3d35a6c

Browse files
ChaselChiumergify[bot]
authored andcommitted
IntelFsp2Pkg: Adopt FSP 2.4 MultiPhase functions.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3916 Adopt MultiPhase functions for both FspSecCoreS and FspSecCoreM. For backward compatibility, new INF are created for new modules. Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Star Zeng <star.zeng@intel.com> Signed-off-by: Chasel Chiu <chasel.chiu@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
1 parent 5eeb088 commit 3d35a6c

File tree

10 files changed

+969
-0
lines changed

10 files changed

+969
-0
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
## @file
2+
# Sec Core for FSP to support MultiPhase (SeparatePhase) MemInitialization.
3+
#
4+
# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
5+
#
6+
# SPDX-License-Identifier: BSD-2-Clause-Patent
7+
#
8+
##
9+
10+
[Defines]
11+
INF_VERSION = 0x00010005
12+
BASE_NAME = Fsp24SecCoreM
13+
FILE_GUID = C5BC0719-4A23-4F6E-94DA-05FB6A0DFA9C
14+
MODULE_TYPE = SEC
15+
VERSION_STRING = 1.0
16+
17+
#
18+
# The following information is for reference only and not required by the build tools.
19+
#
20+
# VALID_ARCHITECTURES = IA32 X64
21+
#
22+
23+
[Sources]
24+
SecMain.c
25+
SecMain.h
26+
SecFsp.c
27+
SecFsp.h
28+
SecFspApiChk.c
29+
30+
[Sources.IA32]
31+
Ia32/Stack.nasm
32+
Ia32/Fsp24ApiEntryM.nasm
33+
Ia32/FspApiEntryCommon.nasm
34+
Ia32/FspHelper.nasm
35+
Ia32/ReadEsp.nasm
36+
37+
[Sources.X64]
38+
X64/Stack.nasm
39+
X64/Fsp24ApiEntryM.nasm
40+
X64/FspApiEntryCommon.nasm
41+
X64/FspHelper.nasm
42+
X64/ReadRsp.nasm
43+
44+
[Binaries.Ia32]
45+
RAW|Vtf0/Bin/ResetVec.ia32.raw |GCC
46+
47+
[Packages]
48+
MdePkg/MdePkg.dec
49+
IntelFsp2Pkg/IntelFsp2Pkg.dec
50+
UefiCpuPkg/UefiCpuPkg.dec
51+
52+
[LibraryClasses]
53+
BaseMemoryLib
54+
DebugLib
55+
BaseLib
56+
PciCf8Lib
57+
SerialPortLib
58+
FspSwitchStackLib
59+
FspCommonLib
60+
FspSecPlatformLib
61+
CpuLib
62+
UefiCpuLib
63+
FspMultiPhaseLib
64+
65+
[Pcd]
66+
gIntelFsp2PkgTokenSpaceGuid.PcdTemporaryRamBase ## CONSUMES
67+
gIntelFsp2PkgTokenSpaceGuid.PcdTemporaryRamSize ## CONSUMES
68+
gIntelFsp2PkgTokenSpaceGuid.PcdFspTemporaryRamSize ## CONSUMES
69+
gIntelFsp2PkgTokenSpaceGuid.PcdFspHeapSizePercentage ## CONSUMES
70+
gIntelFsp2PkgTokenSpaceGuid.PcdFspMaxInterruptSupported ## CONSUMES
71+
gIntelFsp2PkgTokenSpaceGuid.PcdFspPrivateTemporaryRamSize ## CONSUMES
72+
73+
[Ppis]
74+
gEfiTemporaryRamSupportPpiGuid ## PRODUCES
75+
gFspInApiModePpiGuid ## PRODUCES
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## @file
2+
# Sec Core for FSP to support MultiPhase (SeparatePhase) SiInitialization.
3+
#
4+
# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
5+
#
6+
# SPDX-License-Identifier: BSD-2-Clause-Patent
7+
#
8+
##
9+
10+
[Defines]
11+
INF_VERSION = 0x00010005
12+
BASE_NAME = Fsp24SecCoreS
13+
FILE_GUID = E039988B-0F21-4D95-AE34-C469B10E13F8
14+
MODULE_TYPE = SEC
15+
VERSION_STRING = 1.0
16+
17+
#
18+
# The following information is for reference only and not required by the build tools.
19+
#
20+
# VALID_ARCHITECTURES = IA32 X64
21+
#
22+
23+
[Sources]
24+
SecFspApiChk.c
25+
SecFsp.h
26+
27+
[Sources.IA32]
28+
Ia32/Stack.nasm
29+
Ia32/Fsp24ApiEntryS.nasm
30+
Ia32/FspApiEntryCommon.nasm
31+
Ia32/FspHelper.nasm
32+
33+
[Sources.X64]
34+
X64/Stack.nasm
35+
X64/Fsp24ApiEntryS.nasm
36+
X64/FspApiEntryCommon.nasm
37+
X64/FspHelper.nasm
38+
39+
[Binaries.Ia32]
40+
RAW|Vtf0/Bin/ResetVec.ia32.raw |GCC
41+
42+
[Packages]
43+
MdePkg/MdePkg.dec
44+
IntelFsp2Pkg/IntelFsp2Pkg.dec
45+
46+
[LibraryClasses]
47+
BaseMemoryLib
48+
DebugLib
49+
BaseLib
50+
PciCf8Lib
51+
SerialPortLib
52+
FspSwitchStackLib
53+
FspCommonLib
54+
FspSecPlatformLib
55+
FspMultiPhaseLib
56+
57+
[Ppis]
58+
gEfiTemporaryRamSupportPpiGuid ## PRODUCES
59+

0 commit comments

Comments
 (0)