cmp r0, #ARM_CPU_EVENT_BOOT_MEM_INIT\r
// The SCU enabled is the event to tell us the Init Boot Memory is initialized\r
beq ArmWaitGicDistributorEnabled\r
- bx ASM_PFX(CArmCpuSynchronizeWait)\r
+ push {r1,lr}\r
+ LoadConstantToReg (ASM_PFX(CArmCpuSynchronizeWait), r1)\r
+ blx r1\r
+ pop {r1,lr}\r
+ bx lr\r
\r
// IN None\r
ArmWaitGicDistributorEnabled:\r
cmp r0, #ARM_CPU_EVENT_BOOT_MEM_INIT\r
// The SCU enabled is the event to tell us the Init Boot Memory is initialized\r
beq ArmWaitGicDistributorEnabled\r
- b CArmCpuSynchronizeWait\r
+ // Case when the stack has been set up\r
+ push {r1,lr}\r
+ LoadConstantToReg (CArmCpuSynchronizeWait, r1)\r
+ blx r1\r
+ pop {r1,lr}\r
+ bx lr\r
+\r
\r
// IN None\r
ArmWaitGicDistributorEnabled\r
//\r
//\r
\r
+#include <AsmMacroIoLib.h>\r
#include <Library/ArmCpuLib.h>\r
#include <Chipset/ArmCortexA9.h>\r
\r
cmp r0, #ARM_CPU_EVENT_BOOT_MEM_INIT\r
// The SCU enabled is the event to tell us the Init Boot Memory is initialized\r
beq ASM_PFX(ArmWaitScuEnabled)\r
- b ASM_PFX(CArmCpuSynchronizeWait)\r
+ // Case when the stack has been set up\r
+ push {r1,lr}\r
+ LoadConstantToReg (ASM_PFX(CArmCpuSynchronizeWait), r1)\r
+ blx r1\r
+ pop {r1,lr}\r
+ bx lr\r
\r
// IN None\r
// OUT r0 = SCU Base Address\r
//\r
//\r
\r
+#include <AsmMacroIoLib.h>\r
#include <Library/ArmCpuLib.h>\r
#include <Chipset/ArmCortexA9.h>\r
\r
+ INCLUDE AsmMacroIoLib.inc\r
+\r
EXPORT ArmCpuSynchronizeWait\r
EXPORT ArmGetScuBaseAddress\r
IMPORT CArmCpuSynchronizeWait\r
cmp r0, #ARM_CPU_EVENT_BOOT_MEM_INIT\r
// The SCU enabled is the event to tell us the Init Boot Memory is initialized\r
beq ArmWaitScuEnabled\r
- b CArmCpuSynchronizeWait\r
+ // Case when the stack has been set up\r
+ push {r1,lr}\r
+ LoadConstantToReg (CArmCpuSynchronizeWait, r1)\r
+ blx r1\r
+ pop {r1,lr}\r
+ bx lr\r
\r
// IN None\r
// OUT r0 = SCU Base Address\r
#include <PiDxe.h>
+#include <Library/ArmLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
\r
**/\r
\r
+#include <Base.h>\r
#include <Library/BaseLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
DebugLib\r
PeCoffGetEntryPointLib\r
ArmDisassemblerLib\r
-\r
-\r
+ SerialPortLib\r
\r
GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a9 -mfpu=neon -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4\r
\r
- XCODE:*_*_ARM_PLATFORM_FLAGS == -march=armv7-a -mfpu=neon -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4\r
+ XCODE:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a9 -mfpu=neon -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4\r
\r
################################################################################\r
#\r