;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>\r
; SPDX-License-Identifier: BSD-2-Clause-Patent\r
;\r
; Module Name:\r
\r
mov esi, ebx\r
\r
- ; Increment the number of APs executing here as early as possible\r
- ; This is decremented in C code when AP is finished executing\r
- mov edi, esi\r
- add edi, NumApsExecutingLocation\r
- lock inc dword [edi]\r
-\r
mov edi, esi\r
add edi, EnableExecuteDisableLocation\r
cmp byte [edi], 0\r
cmp dword [edi], 1 ; 1 == ApInitConfig\r
jnz GetApicId\r
\r
+ ; Increment the number of APs executing here as early as possible\r
+ ; This is decremented in C code when AP is finished executing\r
+ mov edi, esi\r
+ add edi, NumApsExecutingLocation\r
+ lock inc dword [edi]\r
+\r
; AP init\r
mov edi, esi\r
add edi, LockLocation\r