Skip to content

Commit

Permalink
UefiCpuPkg/MpInitLibUp: Update the ProcessorNumber
Browse files Browse the repository at this point in the history
Update the ProcessorNumber to avoid the assert when
creating MpInformation2 HOB.

Signed-off-by: Ceping Sun <cepingx.sun@intel.com>
reviewed-by: Min Xu <min.m.xu@intel.com>
tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
  • Loading branch information
sunceping authored and mxu9 committed Jan 5, 2024
1 parent aaac8f2 commit c229fca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ MpInitLibGetProcessorInfo (
return EFI_INVALID_PARAMETER;
}

if (ProcessorNumber != 0) {
// Lower 24 bits contains the actual processor number.
if ((ProcessorNumber &= BIT24 - 1) != 0 ) {
return EFI_NOT_FOUND;
}

Expand Down

0 comments on commit c229fca

Please sign in to comment.