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 <[email protected]>
  • Loading branch information
sunceping authored and mxu9 committed Jan 5, 2024
1 parent 9a4bda6 commit 5e8660b
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 5e8660b

Please sign in to comment.