UefiCpuPkg/MpInitLib: Fix typo and clean up the code
1. Rename NumApsExecutingLoction to NumApsExecutingLocation 2. Update some comments in NASM files. 3. Remove PeiCpuMpData from MP_CPU_EXCHANGE_INFO. Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Feng Tian <feng.tian@intel.com> Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Michael Kinney <michael.d.kinney@intel.com>
This commit is contained in:
@@ -71,8 +71,8 @@ o32 lidt [cs:si]
|
||||
xor ax, ax
|
||||
mov ds, ax
|
||||
|
||||
mov eax, cr0 ;Get control register 0
|
||||
or eax, 000000003h ;Set PE bit (bit #0) & MP
|
||||
mov eax, cr0 ; Get control register 0
|
||||
or eax, 000000003h ; Set PE bit (bit #0) & MP
|
||||
mov cr0, eax
|
||||
|
||||
jmp 0:strict dword 0 ; far jump to protected mode
|
||||
@@ -95,7 +95,7 @@ TestLock:
|
||||
jz TestLock
|
||||
|
||||
mov edi, esi
|
||||
add edi, NumApsExecutingLoction
|
||||
add edi, NumApsExecutingLocation
|
||||
inc dword [edi]
|
||||
mov ebx, [edi]
|
||||
|
||||
@@ -133,9 +133,9 @@ CProcedureInvoke:
|
||||
add edi, ApProcedureLocation
|
||||
mov eax, [edi]
|
||||
|
||||
call eax ; invoke C function
|
||||
call eax ; Invoke C function
|
||||
|
||||
jmp $ ; never reach here
|
||||
jmp $ ; Never reach here
|
||||
RendezvousFunnelProcEnd:
|
||||
|
||||
;-------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user