mirror of https://github.com/acidanthera/audk.git
ArmPkg/BaseMemoryLibSm: switch to ASM_FUNC() asm macro
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>
This commit is contained in:
parent
86a4d91bda
commit
8ca934aab5
|
@ -17,6 +17,8 @@
|
|||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
|
||||
/**
|
||||
Copy Length bytes from Source to Destination. Overlap is OK.
|
||||
|
||||
|
@ -37,11 +39,7 @@ InternalMemCopyMem (
|
|||
IN UINTN Length
|
||||
)
|
||||
**/
|
||||
.text
|
||||
.align 2
|
||||
GCC_ASM_EXPORT(InternalMemCopyMem)
|
||||
|
||||
ASM_PFX(InternalMemCopyMem):
|
||||
ASM_FUNC(InternalMemCopyMem)
|
||||
stmfd sp!, {r4-r11, lr}
|
||||
// Save the input parameters in extra registers (r11 = destination, r14 = source, r12 = length)
|
||||
mov r11, r0
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#include <AsmMacroIoLib.h>
|
||||
|
||||
/**
|
||||
Set Buffer to Value for Size bytes.
|
||||
|
||||
|
@ -35,12 +37,9 @@ InternalMemSetMem (
|
|||
)
|
||||
**/
|
||||
|
||||
.text
|
||||
.syntax unified
|
||||
.align 2
|
||||
GCC_ASM_EXPORT(InternalMemSetMem)
|
||||
|
||||
ASM_PFX(InternalMemSetMem):
|
||||
ASM_FUNC(InternalMemSetMem)
|
||||
stmfd sp!, {r4-r11, lr}
|
||||
tst r0, #3
|
||||
movne r3, #0
|
||||
|
|
Loading…
Reference in New Issue