UefiCpuPkg/CpuDxe: split out StartupCode from StartApsStackless()

Contributed-under: TianoCore Contribution Agreement 1.0
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@16365 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Chen Fan
2014-11-13 18:29:01 +00:00
committed by jljusten
parent e4aaf76428
commit fe078dd57f
3 changed files with 66 additions and 18 deletions

View File

@@ -1454,7 +1454,10 @@ InitializeMpSupport (
InitMpSystemData ();
PrepareAPStartupCode ();
if (mMpSystemData.NumberOfProcessors == 1) {
FreeApStartupCode ();
FreePages (mCommonStack, EFI_SIZE_TO_PAGES (gMaxLogicalProcessorNumber * gApStackSize));
return;
}