IdtrLocation equ LockLocation + 16h\r
BufferStartLocation equ LockLocation + 1Ch\r
ModeOffsetLocation equ LockLocation + 20h\r
-NumApsExecutingLocation equ LockLocation + 24h\r
+ApIndexLocation equ LockLocation + 24h\r
CodeSegmentLocation equ LockLocation + 28h\r
DataSegmentLocation equ LockLocation + 2Ch\r
EnableExecuteDisableLocation equ LockLocation + 30h\r
jz TestLock\r
\r
mov ecx, esi\r
- add ecx, NumApsExecutingLocation\r
+ add ecx, ApIndexLocation\r
inc dword [ecx]\r
mov ebx, [ecx]\r
\r
mov eax, ASM_PFX(InitializeFloatingPointUnits)\r
call eax ; Call assembly function to initialize FPU per UEFI spec\r
\r
- push ebx ; Push NumApsExecuting\r
+ push ebx ; Push ApIndex\r
mov eax, esi\r
add eax, LockLocation\r
push eax ; push address of exchange info data buffer\r
EFIAPI\r
ApWakeupFunction (\r
IN MP_CPU_EXCHANGE_INFO *ExchangeInfo,\r
- IN UINTN NumApsExecuting\r
+ IN UINTN ApIndex\r
)\r
{\r
CPU_MP_DATA *CpuMpData;\r
// Add CPU number\r
//\r
InterlockedIncrement ((UINT32 *) &CpuMpData->CpuCount);\r
- ProcessorNumber = NumApsExecuting;\r
+ ProcessorNumber = ApIndex;\r
//\r
// This is first time AP wakeup, get BIST information from AP stack\r
//\r
ExchangeInfo->Cr3 = AsmReadCr3 ();\r
\r
ExchangeInfo->CFunction = (UINTN) ApWakeupFunction;\r
- ExchangeInfo->NumApsExecuting = 0;\r
+ ExchangeInfo->ApIndex = 0;\r
ExchangeInfo->InitFlag = (UINTN) CpuMpData->InitFlag;\r
ExchangeInfo->CpuInfo = (CPU_INFO_IN_HOB *) (UINTN) CpuMpData->CpuInfoInHob;\r
ExchangeInfo->CpuMpData = CpuMpData;\r
IA32_DESCRIPTOR IdtrProfile;\r
UINTN BufferStart;\r
UINTN ModeOffset;\r
- UINTN NumApsExecuting;\r
+ UINTN ApIndex;\r
UINTN CodeSegment;\r
UINTN DataSegment;\r
UINTN EnableExecuteDisable;\r
IdtrLocation equ LockLocation + 2Ah\r
BufferStartLocation equ LockLocation + 34h\r
ModeOffsetLocation equ LockLocation + 3Ch\r
-NumApsExecutingLocation equ LockLocation + 44h\r
+ApIndexLocation equ LockLocation + 44h\r
CodeSegmentLocation equ LockLocation + 4Ch\r
DataSegmentLocation equ LockLocation + 54h\r
EnableExecuteDisableLocation equ LockLocation + 5Ch\r
cmp rax, NotVacantFlag\r
jz TestLock\r
\r
- lea ecx, [esi + NumApsExecutingLocation]\r
+ lea ecx, [esi + ApIndexLocation]\r
inc dword [ecx]\r
mov ebx, [ecx]\r
\r
call rax ; Call assembly function to initialize FPU per UEFI spec\r
add rsp, 20h\r
\r
- mov edx, ebx ; edx is NumApsExecuting\r
+ mov edx, ebx ; edx is ApIndex\r
mov ecx, esi\r
add ecx, LockLocation ; rcx is address of exchange info data buffer\r
\r