]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/PrePi/PrePi.c
ArmPlatformPkg: Minor code changes (comments, misspellings, coding stylei, line endings)
[mirror_edk2.git] / ArmPlatformPkg / PrePi / PrePi.c
index eba8750a41f7a018c71b9ec26279e743134dedb1..11396d1537c523dab1167c330339fa408ee5e423 100755 (executable)
@@ -199,10 +199,12 @@ CEntryPoint (
   if (!IS_XIP()) {\r
     if (IS_PRIMARY_CORE(MpId)) {\r
       mGlobalVariableBase = GlobalVariableBase;\r
-      ArmCpuSynchronizeSignal (ARM_CPU_EVENT_DEFAULT);\r
+      if (ArmIsMpCore()) {\r
+        ArmCpuSynchronizeSignal (ARM_CPU_EVENT_DEFAULT);\r
+      }\r
     } else {\r
-         // Wait the Primay core has defined the address of the Global Variable region\r
-         ArmCpuSynchronizeWait (ARM_CPU_EVENT_DEFAULT);\r
+      // Wait the Primay core has defined the address of the Global Variable region\r
+      ArmCpuSynchronizeWait (ARM_CPU_EVENT_DEFAULT);\r
     }\r
   }\r
   \r