summaryrefslogtreecommitdiff
path: root/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S
diff options
context:
space:
mode:
Diffstat (limited to 'PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S')
-rw-r--r--PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S b/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S
index 49fcf533a..6f21ed08a 100644
--- a/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S
+++ b/PandaBoardPkg/Library/PandaBoardLib/PandaBoardHelper.S
@@ -25,6 +25,7 @@ GCC_ASM_EXPORT(ArmPlatformGetCorePosition)
GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)
GCC_ASM_EXPORT(ArmPlatformPeiBootAction)
+GCC_ASM_EXPORT(ArmPlatformGetPrimaryCoreMpId)
/**
ArmPlatformPrePiBootAction
@@ -117,3 +118,12 @@ ASM_PFX(ArmPlatformPeiBootAction):
mov pc, lr
ASM_FUNCTION_REMOVE_IF_UNREFERENCED
+
+//UINTN
+//ArmPlatformGetPrimaryCoreMpId (
+// VOID
+// );
+ASM_PFX(ArmPlatformGetPrimaryCoreMpId):
+ LoadConstantToReg (_gPcd_FixedAtBuild_PcdArmPrimaryCore, r0)
+ ldr r0, [r0]
+ bx lr