IdtrLocation equ LockLocation + 16h\r
BufferStartLocation equ LockLocation + 1Ch\r
ModeOffsetLocation equ LockLocation + 20h\r
-NumApsExecutingLoction equ LockLocation + 24h\r
+NumApsExecutingLocation equ LockLocation + 24h\r
CodeSegmentLocation equ LockLocation + 28h\r
DataSegmentLocation equ LockLocation + 2Ch\r
\r
xor ax, ax\r
mov ds, ax\r
\r
- mov eax, cr0 ;Get control register 0\r
- or eax, 000000003h ;Set PE bit (bit #0) & MP\r
+ mov eax, cr0 ; Get control register 0\r
+ or eax, 000000003h ; Set PE bit (bit #0) & MP\r
mov cr0, eax\r
\r
jmp 0:strict dword 0 ; far jump to protected mode\r
jz TestLock\r
\r
mov edi, esi\r
- add edi, NumApsExecutingLoction\r
+ add edi, NumApsExecutingLocation\r
inc dword [edi]\r
mov ebx, [edi]\r
\r
add edi, ApProcedureLocation\r
mov eax, [edi]\r
\r
- call eax ; invoke C function\r
+ call eax ; Invoke C function\r
\r
- jmp $ ; never reach here\r
+ jmp $ ; Never reach here\r
RendezvousFunnelProcEnd:\r
\r
;-------------------------------------------------------------------------------------\r
UINTN CodeSegment;\r
UINTN DataSegment;\r
UINTN Cr3;\r
- PEI_CPU_MP_DATA *PeiCpuMpData;\r
} MP_CPU_EXCHANGE_INFO;\r
\r
#pragma pack()\r
IdtrLocation equ LockLocation + 2Ah\r
BufferStartLocation equ LockLocation + 34h\r
ModeOffsetLocation equ LockLocation + 3Ch\r
-NumApsExecutingLoction equ LockLocation + 44h\r
+NumApsExecutingLocation equ LockLocation + 44h\r
CodeSegmentLocation equ LockLocation + 4Ch\r
DataSegmentLocation equ LockLocation + 54h\r
Cr3Location equ LockLocation + 5Ch\r
mov di, CodeSegmentLocation\r
mov edx, [di]\r
mov di, ax\r
- sub di, 02h \r
+ sub di, 02h\r
mov [di],dx ; Patch long mode CS\r
sub di, 04h\r
add eax, ebx\r
jz TestLock\r
\r
mov edi, esi\r
- add edi, NumApsExecutingLoction\r
+ add edi, NumApsExecutingLocation\r
inc dword [edi]\r
mov ebx, [edi]\r
\r
xchg qword [edi], rax\r
\r
CProcedureInvoke:\r
- push rbp ; push BIST data at top of AP stack\r
- xor rbp, rbp ; clear ebp for call stack trace\r
+ push rbp ; Push BIST data at top of AP stack\r
+ xor rbp, rbp ; Clear ebp for call stack trace\r
push rbp\r
mov rbp, rsp\r
\r
mov rax, qword [edi]\r
\r
sub rsp, 20h\r
- call rax ; invoke C function\r
+ call rax ; Invoke C function\r
add rsp, 20h\r
- jmp $\r
+ jmp $ ; Should never reach here\r
\r
RendezvousFunnelProcEnd:\r
\r
\r
;-------------------------------------------------------------------------------------\r
;AsmExchangeRole procedure follows. This procedure executed by current BSP, that is\r
-;about to become an AP. It switches it'stack with the current AP.\r
+;about to become an AP. It switches its stack with the current AP.\r
;AsmExchangeRole (IN CPU_EXCHANGE_INFO *MyInfo, IN CPU_EXCHANGE_INFO *OthersInfo);\r
;-------------------------------------------------------------------------------------\r
global ASM_PFX(AsmExchangeRole)\r