diff options
author | Tom Rini <trini@konsulko.com> | 2025-04-02 14:34:08 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-04-02 14:34:08 -0600 |
commit | 8b0fe584ae91b588227d69eb7572f72d8b86a83c (patch) | |
tree | f2af05046eddfcec18790346e3131596ee88d343 /arch/arm/lib/eabi_compat.c | |
parent | d6cc404b5f8d95b8c84537eac097eb5bcca08d78 (diff) | |
parent | 358d1cc232c30091767ce192e74169e7861ae58a (diff) |
Merge patch series "Various toolchain compatibility fixes/improvements"
Sam Edwards <cfsworks@gmail.com> says:
This is v2 of my "misc. fixes" series, sent to prepare the codebase for more
direct LLVM support in the near future. This series contains several fixes that
I found in the process of preparing that support and which address issues
independent of any future feature or enhancement. I am sending these now, both
so that their inclusion is not delayed by discussion on my upcoming series and
to make the latter more manageable.
Link: https://lore.kernel.org/r/20250315221813.1265193-1-CFSworks@gmail.com
Diffstat (limited to 'arch/arm/lib/eabi_compat.c')
-rw-r--r-- | arch/arm/lib/eabi_compat.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/lib/eabi_compat.c b/arch/arm/lib/eabi_compat.c index 602efe04c04..e6cafcc5f2b 100644 --- a/arch/arm/lib/eabi_compat.c +++ b/arch/arm/lib/eabi_compat.c @@ -33,7 +33,24 @@ void __aeabi_memcpy(void *dest, const void *src, size_t n) (void) memcpy(dest, src, n); } +void __aeabi_memcpy4(void *dest, const void *src, size_t n) __alias(__aeabi_memcpy); + +void __aeabi_memcpy8(void *dest, const void *src, size_t n) __alias(__aeabi_memcpy); + void __aeabi_memset(void *dest, size_t n, int c) { (void) memset(dest, c, n); } + +void __aeabi_memset4(void *dest, size_t n, int c) __alias(__aeabi_memset); + +void __aeabi_memset8(void *dest, size_t n, int c) __alias(__aeabi_memset); + +void __aeabi_memclr(void *dest, size_t n) +{ + (void) memset(dest, 0, n); +} + +void __aeabi_memclr4(void *dest, size_t n) __alias(__aeabi_memclr); + +void __aeabi_memclr8(void *dest, size_t n) __alias(__aeabi_memclr); |