1// 2// Copyright (c) 2012-2013, ARM Limited. All rights reserved. 3// 4// This program and the accompanying materials 5// are licensed and made available under the terms and conditions of the BSD License 6// which accompanies this distribution. The full text of the license may be found at 7// http://opensource.org/licenses/bsd-license.php 8// 9// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 10// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 11// 12// 13 14#include <AsmMacroIoLib.h> 15#include <Base.h> 16 17#include <AutoGen.h> 18 19 INCLUDE AsmMacroIoLib.inc 20 21 EXPORT ArmPlatformPeiBootAction 22 EXPORT ArmPlatformIsPrimaryCore 23 EXPORT ArmPlatformGetPrimaryCoreMpId 24 25 IMPORT ArmReadMpidr 26 27 AREA BeagleBoardHelper, CODE, READONLY 28 29//UINTN 30//ArmPlatformIsPrimaryCore ( 31// IN UINTN MpId 32// ); 33ArmPlatformIsPrimaryCore FUNCTION 34 // BeagleBoard has a single core. We must always return 1. 35 mov r0, #1 36 bx lr 37 ENDFUNC 38 39ArmPlatformPeiBootAction FUNCTION 40 bx lr 41 ENDFUNC 42 43//UINTN 44//ArmPlatformGetPrimaryCoreMpId ( 45// VOID 46// ); 47ArmPlatformGetPrimaryCoreMpId FUNCTION 48 // The BeagleBoard is a uniprocessor platform. The MPIDR of primary core is 49 // always the MPIDR of the calling CPU. 50 b ArmReadMpidr 51 ENDFUNC 52 53 END 54