summaryrefslogtreecommitdiffstats
path: root/ArmPlatformPkg/Include/Library/ArmPlatformLib.h
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2015-02-25 19:14:26 +0000
committeroliviermartin <oliviermartin@Edk2>2015-02-25 19:14:26 +0000
commitdff720276a3ee19af0cb658340ac8514ffce8359 (patch)
tree294de85293545b57a866eb6a64ee84076e93adfb /ArmPlatformPkg/Include/Library/ArmPlatformLib.h
parentdf320b1084907173f100208c06d00b05f4d52b2b (diff)
downloadedk2-dff720276a3ee19af0cb658340ac8514ffce8359.tar.gz
edk2-dff720276a3ee19af0cb658340ac8514ffce8359.tar.bz2
edk2-dff720276a3ee19af0cb658340ac8514ffce8359.zip
ArmPlatformPkg/ArmVExpressDxe: Identify the current platform
Add a function to ArmVExpressDxe to identify the current platform we are running on. This includes ARM32 and AArch64 models and hardware. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16931 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Include/Library/ArmPlatformLib.h')
-rw-r--r--ArmPlatformPkg/Include/Library/ArmPlatformLib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ArmPlatformPkg/Include/Library/ArmPlatformLib.h b/ArmPlatformPkg/Include/Library/ArmPlatformLib.h
index 77561a3d05..fe3bc4bb8e 100644
--- a/ArmPlatformPkg/Include/Library/ArmPlatformLib.h
+++ b/ArmPlatformPkg/Include/Library/ArmPlatformLib.h
@@ -41,6 +41,19 @@ typedef struct {
} ARM_SYSTEM_MEMORY_REGION_DESCRIPTOR;
/**
+ Return the core per cluster. The method may differ per core type
+
+ This function might be called from assembler before any stack is set.
+
+ @return Return the core count per cluster
+
+**/
+UINTN
+ArmGetCpuCountPerCluster (
+ VOID
+ );
+
+/**
Return the core position from the value of its MpId register
This function returns the core position from the position 0 in the processor.