X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BeagleBoardPkg%2FLibrary%2FBeagleBoardLib%2FBeagleBoardHelper.asm;h=86906c87bcc1c0196eada337cbdc126f93f72708;hp=35115d014079ac0b3e25d31d48728820ead60c1a;hb=91c38d4e94c1461f5824b83d3722fe46626aa0d3;hpb=bebda7ceec3d3024c76b3c2ed0c9b4e502a13d61 diff --git a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm index 35115d0140..86906c87bc 100644 --- a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm +++ b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm @@ -1,13 +1,13 @@ // -// Copyright (c) 2012, 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 +// Copyright (c) 2012-2013, ARM Limited. All rights reserved. // -// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +// 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. // // @@ -18,7 +18,11 @@ INCLUDE AsmMacroIoLib.inc + EXPORT ArmPlatformPeiBootAction EXPORT ArmPlatformIsPrimaryCore + EXPORT ArmPlatformGetPrimaryCoreMpId + + IMPORT ArmReadMpidr AREA BeagleBoardHelper, CODE, READONLY @@ -28,9 +32,22 @@ // ); ArmPlatformIsPrimaryCore FUNCTION // BeagleBoard has a single core. We must always return 1. - mov r0, #1 - bx lr + mov r0, #1 + bx lr ENDFUNC - END +ArmPlatformPeiBootAction FUNCTION + bx lr + ENDFUNC +//UINTN +//ArmPlatformGetPrimaryCoreMpId ( +// VOID +// ); +ArmPlatformGetPrimaryCoreMpId FUNCTION + // The BeagleBoard is a uniprocessor platform. The MPIDR of primary core is + // always the MPIDR of the calling CPU. + b ArmReadMpidr + ENDFUNC + + END