mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
ArmPkg/BaseMemoryLibVstm: 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
8ca934aab5
commit
7589d9dbcf
@ -17,6 +17,8 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include <AsmMacroIoLib.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copy Length bytes from Source to Destination. Overlap is OK.
|
Copy Length bytes from Source to Destination. Overlap is OK.
|
||||||
|
|
||||||
@ -37,11 +39,7 @@ InternalMemCopyMem (
|
|||||||
IN UINTN Length
|
IN UINTN Length
|
||||||
)
|
)
|
||||||
**/
|
**/
|
||||||
.text
|
ASM_FUNC(InternalMemCopyMem)
|
||||||
.align 2
|
|
||||||
GCC_ASM_EXPORT(InternalMemCopyMem)
|
|
||||||
|
|
||||||
ASM_PFX(InternalMemCopyMem):
|
|
||||||
stmfd sp!, {r4, r9, lr}
|
stmfd sp!, {r4, r9, lr}
|
||||||
tst r0, #3
|
tst r0, #3
|
||||||
mov r4, r0
|
mov r4, r0
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include <AsmMacroIoLib.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set Buffer to Value for Size bytes.
|
Set Buffer to Value for Size bytes.
|
||||||
|
|
||||||
@ -34,12 +36,7 @@ InternalMemSetMem (
|
|||||||
IN UINT8 Value
|
IN UINT8 Value
|
||||||
)
|
)
|
||||||
**/
|
**/
|
||||||
|
ASM_FUNC(InternalMemSetMem)
|
||||||
.text
|
|
||||||
.align 2
|
|
||||||
GCC_ASM_EXPORT(InternalMemSetMem)
|
|
||||||
|
|
||||||
ASM_PFX(InternalMemSetMem):
|
|
||||||
stmfd sp!, {r4-r7, lr}
|
stmfd sp!, {r4-r7, lr}
|
||||||
tst r0, #3
|
tst r0, #3
|
||||||
movne r3, #0
|
movne r3, #0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user