Skip to content

Commit c229fca

Browse files
suncepingmxu9
authored andcommitted
UefiCpuPkg/MpInitLibUp: Update the ProcessorNumber
Update the ProcessorNumber to avoid the assert when creating MpInformation2 HOB. Signed-off-by: Ceping Sun <[email protected]> reviewed-by: Min Xu <[email protected]> tested-by: Kirill A. Shutemov <[email protected]>
1 parent aaac8f2 commit c229fca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ MpInitLibGetProcessorInfo (
104104
return EFI_INVALID_PARAMETER;
105105
}
106106

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

0 commit comments

Comments
 (0)