mirror of https://github.com/acidanthera/audk.git
48 lines
959 B
NASM
48 lines
959 B
NASM
//
|
|
// Copyright (c) 2012-2013, ARM Limited. All rights reserved.
|
|
//
|
|
// SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
//
|
|
//
|
|
|
|
#include <AsmMacroIoLib.h>
|
|
#include <Base.h>
|
|
|
|
#include <AutoGen.h>
|
|
|
|
INCLUDE AsmMacroIoLib.inc
|
|
|
|
EXPORT ArmPlatformPeiBootAction
|
|
EXPORT ArmPlatformIsPrimaryCore
|
|
EXPORT ArmPlatformGetPrimaryCoreMpId
|
|
|
|
IMPORT ArmReadMpidr
|
|
|
|
AREA BeagleBoardHelper, CODE, READONLY
|
|
|
|
//UINTN
|
|
//ArmPlatformIsPrimaryCore (
|
|
// IN UINTN MpId
|
|
// );
|
|
ArmPlatformIsPrimaryCore FUNCTION
|
|
// BeagleBoard has a single core. We must always return 1.
|
|
mov r0, #1
|
|
bx lr
|
|
ENDFUNC
|
|
|
|
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
|