From 1aa9860e8f27a7cf5c8d36854945d9af328a0239 Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Wed, 16 Nov 2011 12:53:25 +0000 Subject: ArmPlatformPkg/PrePi: Ony synchronize cores when it is a MPCore System git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12726 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPlatformPkg/PrePi/PrePi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ArmPlatformPkg/PrePi') diff --git a/ArmPlatformPkg/PrePi/PrePi.c b/ArmPlatformPkg/PrePi/PrePi.c index eba8750a41..11396d1537 100755 --- a/ArmPlatformPkg/PrePi/PrePi.c +++ b/ArmPlatformPkg/PrePi/PrePi.c @@ -199,10 +199,12 @@ CEntryPoint ( if (!IS_XIP()) { if (IS_PRIMARY_CORE(MpId)) { mGlobalVariableBase = GlobalVariableBase; - ArmCpuSynchronizeSignal (ARM_CPU_EVENT_DEFAULT); + if (ArmIsMpCore()) { + ArmCpuSynchronizeSignal (ARM_CPU_EVENT_DEFAULT); + } } else { - // Wait the Primay core has defined the address of the Global Variable region - ArmCpuSynchronizeWait (ARM_CPU_EVENT_DEFAULT); + // Wait the Primay core has defined the address of the Global Variable region + ArmCpuSynchronizeWait (ARM_CPU_EVENT_DEFAULT); } } -- cgit v1.2.3