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
#------------------------------------------------------------------------------\r
\r
+#include <AsmMacroIoLib.h>\r
+\r
/**\r
Copy Length bytes from Source to Destination. Overlap is OK.\r
\r
IN UINTN Length\r
)\r
**/\r
-.text\r
-.align 2\r
-GCC_ASM_EXPORT(InternalMemCopyMem)\r
-\r
-ASM_PFX(InternalMemCopyMem):\r
+ASM_FUNC(InternalMemCopyMem)\r
stmfd sp!, {r4-r11, lr}\r
// Save the input parameters in extra registers (r11 = destination, r14 = source, r12 = length)\r
mov r11, r0\r
#\r
#------------------------------------------------------------------------------\r
\r
+#include <AsmMacroIoLib.h>\r
+\r
/**\r
Set Buffer to Value for Size bytes.\r
\r
)\r
**/\r
\r
-.text\r
.syntax unified\r
-.align 2\r
-GCC_ASM_EXPORT(InternalMemSetMem)\r
\r
-ASM_PFX(InternalMemSetMem):\r
+ASM_FUNC(InternalMemSetMem)\r
stmfd sp!, {r4-r11, lr}\r
tst r0, #3\r
movne r3, #0\r