Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chen Fan <[email protected]>
---
UefiCpuPkg/CpuDxe/CpuMp.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c
index 8626fc4..59fa630 100644
--- a/UefiCpuPkg/CpuDxe/CpuMp.c
+++ b/UefiCpuPkg/CpuDxe/CpuMp.c
@@ -20,6 +20,8 @@ UINTN gPollInterval = 100; // 100 microseconds
MP_SYSTEM_DATA mMpSystemData;
CPU_EXCHANGE_DATA mCpuExchangeData;
+EFI_HANDLE mMpServiceHandle = NULL;
+
VOID *mCommonStack = 0;
VOID *mTopOfApCommonStack = 0;
@@ -1363,6 +1365,8 @@ InitializeMpSupport (
VOID
)
{
+ EFI_STATUS Status;
+
gApStackSize = (UINTN) PcdGet32 (PcdCpuApStackSize);
mCommonStack = AllocatePages (EFI_SIZE_TO_PAGES (gApStackSize));
@@ -1406,6 +1410,13 @@ InitializeMpSupport (
CpuPause ();
};
+ Status = gBS->InstallMultipleProtocolInterfaces (
+ &mMpServiceHandle,
+ &gEfiMpServiceProtocolGuid, &mMpServicesTemplate,
+ NULL
+ );
+ ASSERT_EFI_ERROR (Status);
+
EXIT:
mTopOfApCommonStack = NULL;
FreePages (mCommonStack, EFI_SIZE_TO_PAGES (gApStackSize));
--
1.9.3
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel