]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg MpInitLib: Update return status to follow spec.
authorEric Dong <eric.dong@intel.com>
Thu, 6 Jul 2017 01:25:37 +0000 (09:25 +0800)
committerEric Dong <eric.dong@intel.com>
Fri, 7 Jul 2017 00:54:11 +0000 (08:54 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
UefiCpuPkg/Library/MpInitLib/MpLib.c

index df19b43bc03a0ba73dc0effc5802a2279be5bf67..a3eea29d61483eff41dcd28a8c8d4dae15c1e59d 100644 (file)
@@ -1584,7 +1584,7 @@ SwitchBSPWorker (
   //\r
   MpInitLibWhoAmI (&CallerNumber);\r
   if (CallerNumber != CpuMpData->BspNumber) {\r
   //\r
   MpInitLibWhoAmI (&CallerNumber);\r
   if (CallerNumber != CpuMpData->BspNumber) {\r
-    return EFI_SUCCESS;\r
+    return EFI_DEVICE_ERROR;\r
   }\r
 \r
   if (ProcessorNumber >= CpuMpData->CpuCount) {\r
   }\r
 \r
   if (ProcessorNumber >= CpuMpData->CpuCount) {\r