When combining UEFI firmware built from Tianocore with ARM Trusted Firmware running in EL3, it is the responsibility of ATF that only a single core enters the UEFI firmware in EL2, and the remaining cores are released directly to the OS via PSCI SMC calls. In this case, we don't need the MpCore flavor of PrePi or PrePeiCore, but the UniCore flavor currently checks the CPU identification registers directly, and refuses to proceed if the boot CPU is part of a MpCore system. So drop the ASSERT()'s that implement this check. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
		
			
				
	
	
		
			39 lines
		
	
	
		
			973 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			973 B
		
	
	
	
		
			C
		
	
	
	
	
	
/** @file
 | 
						|
*
 | 
						|
*  Copyright (c) 2011, ARM Limited. All rights reserved.
 | 
						|
*
 | 
						|
*  This program and the accompanying materials
 | 
						|
*  are licensed and made available under the terms and conditions of the BSD License
 | 
						|
*  which accompanies this distribution.  The full text of the license may be found at
 | 
						|
*  http://opensource.org/licenses/bsd-license.php
 | 
						|
*
 | 
						|
*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 | 
						|
*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | 
						|
*
 | 
						|
**/
 | 
						|
 | 
						|
#include "PrePi.h"
 | 
						|
 | 
						|
VOID
 | 
						|
PrimaryMain (
 | 
						|
  IN  UINTN                     UefiMemoryBase,
 | 
						|
  IN  UINTN                     StacksBase,
 | 
						|
  IN  UINT64                    StartTimeStamp
 | 
						|
  )
 | 
						|
{
 | 
						|
  PrePiMain (UefiMemoryBase, StacksBase, StartTimeStamp);
 | 
						|
 | 
						|
  // We must never return
 | 
						|
  ASSERT(FALSE);
 | 
						|
}
 | 
						|
 | 
						|
VOID
 | 
						|
SecondaryMain (
 | 
						|
  IN  UINTN                     MpId
 | 
						|
  )
 | 
						|
{
 | 
						|
  // We must never get into this function on UniCore system
 | 
						|
  ASSERT(FALSE);
 | 
						|
}
 | 
						|
 |