diff options
author | Ray Ni <ray.ni@intel.com> | 2021-02-09 22:10:22 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-03-08 02:22:37 +0000 |
commit | 8c61f1934d473e9477fecc38ec1b9771f9c9d23e (patch) | |
tree | b2490241393b8948a84274dc236f5855390e0ee7 /UefiCpuPkg/Library/MpInitLib/X64 | |
parent | 2fba7d4ee4a78c26cf6c3b97a99f38d43f80b3ff (diff) | |
download | edk2-8c61f1934d473e9477fecc38ec1b9771f9c9d23e.tar.gz edk2-8c61f1934d473e9477fecc38ec1b9771f9c9d23e.tar.bz2 edk2-8c61f1934d473e9477fecc38ec1b9771f9c9d23e.zip |
UefiCpuPkg/MpInitLib: Remove unused Lock from MP_CPU_EXCHANGE_INFO
The Lock is no longer needed since "LOCK XADD" was used in
MpFuncs.nasm for ApIndex atomic increment.
Signed-off-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Diffstat (limited to 'UefiCpuPkg/Library/MpInitLib/X64')
-rw-r--r-- | UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm b/UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm index db297f5cca..50df802d1f 100644 --- a/UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm +++ b/UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm @@ -158,10 +158,6 @@ LongModeStart: ; AP init
mov edi, esi
- add edi, MP_CPU_EXCHANGE_INFO_FIELD (Lock)
- mov rax, NotVacantFlag
-
- mov edi, esi
add edi, MP_CPU_EXCHANGE_INFO_FIELD (ApIndex)
mov ebx, 1
lock xadd dword [edi], ebx ; EBX = ApIndex++
|