Annotate functions with ASM_FUNC() so that they are emitted into
separate sections.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
\r
#include <AsmMacroIoLibV8.h>\r
\r
-.text\r
-.align 3\r
-GCC_ASM_EXPORT (ArmReadCpuExCr)\r
-GCC_ASM_EXPORT (ArmWriteCpuExCr)\r
-\r
-ASM_PFX(ArmReadCpuExCr):\r
+ASM_FUNC(ArmReadCpuExCr)\r
mrs x0, S3_1_c15_c2_1\r
ret\r
\r
-ASM_PFX(ArmWriteCpuExCr):\r
+ASM_FUNC(ArmWriteCpuExCr)\r
msr S3_1_c15_c2_1, x0\r
dsb sy\r
isb\r
//\r
\r
#include <AsmMacroIoLib.h>\r
-#include <Library/ArmCpuLib.h>\r
-#include <Chipset/ArmCortexA9.h>\r
-\r
-.text\r
-.align 3\r
-\r
-GCC_ASM_EXPORT(ArmGetScuBaseAddress)\r
\r
// IN None\r
// OUT r0 = SCU Base Address\r
-ASM_PFX(ArmGetScuBaseAddress):\r
+ASM_FUNC(ArmGetScuBaseAddress)\r
// Read Configuration Base Address Register. ArmCBar cannot be called to get\r
// the Configuration BAR as a stack is not necessary setup. The SCU is at the\r
// offset 0x0000 from the Private Memory Region.\r