]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/MpInitLib/X64/MpFuncs.nasm: fix fatal typo
authorLaszlo Ersek <lersek@redhat.com>
Wed, 16 Nov 2016 21:52:06 +0000 (22:52 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 17 Nov 2016 09:58:07 +0000 (10:58 +0100)
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: 845c5be1fd9bf7edfac4a103dfab70829686978f
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm

index 6a8794d83b5d37d3a0ba16629cc52aef9637014c..138b97312b1d02d2e549f7065087b2c561207555 100644 (file)
@@ -134,7 +134,7 @@ TestLock:
     cmp        rax, NotVacantFlag\r
     jz         TestLock\r
 \r
-    lea        ecx, [esi + InitFlagLocation]\r
+    lea        ecx, [esi + NumApsExecutingLocation]\r
     inc        dword [ecx]\r
     mov        ebx, [ecx]\r
 \r