From e617b9eea9d45b170eabadf5ca96ca0536c538be Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 22 Jan 2016 00:02:21 +0000 Subject: move arm-specific translation units out of arch/arm/src, to src/*/arm this is possible with the new build system that allows src/*/$(ARCH)/* files which do not shadow a file in the parent directory, and yields a more logical organization. eventually it will be possible to remove arch/*/src from the build system. --- src/string/arm/__aeabi_memclr.c | 9 +++++++++ src/string/arm/__aeabi_memcpy.c | 9 +++++++++ src/string/arm/__aeabi_memmove.c | 9 +++++++++ src/string/arm/__aeabi_memset.c | 9 +++++++++ 4 files changed, 36 insertions(+) create mode 100644 src/string/arm/__aeabi_memclr.c create mode 100644 src/string/arm/__aeabi_memcpy.c create mode 100644 src/string/arm/__aeabi_memmove.c create mode 100644 src/string/arm/__aeabi_memset.c (limited to 'src/string') diff --git a/src/string/arm/__aeabi_memclr.c b/src/string/arm/__aeabi_memclr.c new file mode 100644 index 00000000..a25306d7 --- /dev/null +++ b/src/string/arm/__aeabi_memclr.c @@ -0,0 +1,9 @@ +#include +#include "libc.h" + +void __aeabi_memclr(void *dest, size_t n) +{ + memset(dest, 0, n); +} +weak_alias(__aeabi_memclr, __aeabi_memclr4); +weak_alias(__aeabi_memclr, __aeabi_memclr8); diff --git a/src/string/arm/__aeabi_memcpy.c b/src/string/arm/__aeabi_memcpy.c new file mode 100644 index 00000000..4ae5c777 --- /dev/null +++ b/src/string/arm/__aeabi_memcpy.c @@ -0,0 +1,9 @@ +#include +#include "libc.h" + +void __aeabi_memcpy(void *restrict dest, const void *restrict src, size_t n) +{ + memcpy(dest, src, n); +} +weak_alias(__aeabi_memcpy, __aeabi_memcpy4); +weak_alias(__aeabi_memcpy, __aeabi_memcpy8); diff --git a/src/string/arm/__aeabi_memmove.c b/src/string/arm/__aeabi_memmove.c new file mode 100644 index 00000000..951e7d39 --- /dev/null +++ b/src/string/arm/__aeabi_memmove.c @@ -0,0 +1,9 @@ +#include +#include "libc.h" + +void __aeabi_memmove(void *dest, const void *src, size_t n) +{ + memmove(dest, src, n); +} +weak_alias(__aeabi_memmove, __aeabi_memmove4); +weak_alias(__aeabi_memmove, __aeabi_memmove8); diff --git a/src/string/arm/__aeabi_memset.c b/src/string/arm/__aeabi_memset.c new file mode 100644 index 00000000..89299757 --- /dev/null +++ b/src/string/arm/__aeabi_memset.c @@ -0,0 +1,9 @@ +#include +#include "libc.h" + +void __aeabi_memset(void *dest, size_t n, int c) +{ + memset(dest, c, n); +} +weak_alias(__aeabi_memset, __aeabi_memset4); +weak_alias(__aeabi_memset, __aeabi_memset8); -- cgit v1.2.1