summaryrefslogtreecommitdiff
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2014-11-13 18:30:09 +0000
committerjljusten <jljusten@Edk2>2014-11-13 18:30:09 +0000
commitdee9376ffc6e5522bb5e50512b521952a5421fa5 (patch)
tree6620249a5b4f5a0d6fdaf571e2e11bd936e549e4 /UefiCpuPkg
parentcd8c700b03e38e9389a8f13e193a431072802593 (diff)
downloadedk2-platforms-dee9376ffc6e5522bb5e50512b521952a5421fa5.tar.xz
UefiCpuPkg/CpuDxe: Startup APs
This sequence should happen: * CpuMp.c: Allocate a stack for the APs * ApStartup.c: Send Start IPI to wake APs in 16-bit real mode * MpAsm.S: AP enters CpuDxe driver code without stack - AP grabs a lock - AP sets up stack - AP calls CpuMp.c:ApEntryPointInC Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16370 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r--UefiCpuPkg/CpuDxe/CpuMp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c
index 5d5c7db765..2bc9f70bbb 100644
--- a/UefiCpuPkg/CpuDxe/CpuMp.c
+++ b/UefiCpuPkg/CpuDxe/CpuMp.c
@@ -1500,6 +1500,9 @@ InitializeMpSupport (
PrepareAPStartupCode ();
+ StartApsStackless ();
+
+ DEBUG ((DEBUG_INFO, "Detect CPU count: %d\n", mMpSystemData.NumberOfProcessors));
if (mMpSystemData.NumberOfProcessors == 1) {
FreeApStartupCode ();
FreePages (mCommonStack, EFI_SIZE_TO_PAGES (gMaxLogicalProcessorNumber * gApStackSize));