The NumberOfEnabledProcessors parameter to the MP Services
Protocol service GetNumberOfProcessors() is not optional and is
not allowed to be NULL. Add the CpuEnabledCount local variable
and pass it into GetNumberOfProcessors().
Cc: Zailiang Sun <zailiang.sun@intel.com>
Cc: Yi Qian <yi.qian@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
Reviewed-by: Yi Qian <yi.qian@intel.com>
/** \r
- Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
\r
EFI_HANDLE Handle;\r
EFI_STATUS Status;\r
UINTN CpuCount;\r
+ UINTN CpuEnabledCount;\r
UINT8 CPUMobileFeature;\r
\r
PCH_STEPPING Stepping;\r
//\r
// Get processor count from MP service.\r
//\r
- Status = MpService->GetNumberOfProcessors (MpService, &CpuCount, NULL);\r
+ Status = MpService->GetNumberOfProcessors (MpService, &CpuCount, &CpuEnabledCount);\r
ASSERT_EFI_ERROR (Status);\r
\r
//\r