//\r
//\r
\r
-#include <AsmMacroIoLib.h>\r
#include <Library/ArmLib.h>\r
\r
#include <ArmPlatform.h>\r
ArmPlatformIsPrimaryCore FUNCTION\r
// Extract cpu_id and cluster_id from ARM_SCC_CFGREG48\r
// with cpu_id[0:3] and cluster_id[4:7]\r
- LoadConstantToReg (ARM_CTA15A7_SCC_CFGREG48, r1)\r
+ mov32 r1, ARM_CTA15A7_SCC_CFGREG48\r
ldr r1, [r1]\r
lsr r1, #24\r
\r
orr r1, r1, r2\r
\r
// Keep the Cluster ID and Core ID from the MPID\r
- LoadConstantToReg (ARM_CLUSTER_MASK :OR: ARM_CORE_MASK, r2)\r
+ mov32 r2, ARM_CLUSTER_MASK :OR: ARM_CORE_MASK\r
and r0, r0, r2\r
\r
// Compare mpid and boot cpu from ARM_SCC_CFGREG48\r
ArmPlatformGetPrimaryCoreMpId FUNCTION\r
// Extract cpu_id and cluster_id from ARM_SCC_CFGREG48\r
// with cpu_id[0:3] and cluster_id[4:7]\r
- LoadConstantToReg (ARM_CTA15A7_SCC_CFGREG48, r0)\r
+ mov32 r0, ARM_CTA15A7_SCC_CFGREG48\r
ldr r0, [r0]\r
lsr r0, #24\r
\r