UefiCpuPkg/MpInitLib/X64/MpFuncs.nasm: fix fatal typo

The recent patch "UefiCpuPkg/MpInitLib: Program AP stack in fixed address"
inadvertently broke the first startup of APs during X64 PEI, because in
the TestLock section of the code, it replaced the access to the
NumApsExecuting counter with an access to the unrelated InitFlag field.

Cc: Jeff Fan <jeff.fan@intel.com>
Fixes: 845c5be1fd
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
This commit is contained in:
Laszlo Ersek 2016-11-16 22:52:06 +01:00
parent 5797f61c55
commit 00650c531a
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ TestLock:
cmp rax, NotVacantFlag
jz TestLock
lea ecx, [esi + InitFlagLocation]
lea ecx, [esi + NumApsExecutingLocation]
inc dword [ecx]
mov ebx, [ecx]