[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 19/34] xen/arm: Provide eabi wrapper for __aeabi_mem* functions



Clang doesn't provide function __aebai_mem*, implement generically as a wrapper
for mem* function provided by Xen.

Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx>
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Cc: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>
Cc: Tim Deegan <tim@xxxxxxx>
---
 xen/arch/arm/Makefile |    1 +
 xen/arch/arm/eabi.c   |   29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 xen/arch/arm/eabi.c

diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile
index 63e0460..43344c0 100644
--- a/xen/arch/arm/Makefile
+++ b/xen/arch/arm/Makefile
@@ -33,6 +33,7 @@ obj-y += hvm.o
 obj-y += device.o
 obj-y += decode.o
 obj-y += processor.o
+obj-$(clang) += eabi.o
 
 #obj-bin-y += ....o
 
diff --git a/xen/arch/arm/eabi.c b/xen/arch/arm/eabi.c
new file mode 100644
index 0000000..f01618c
--- /dev/null
+++ b/xen/arch/arm/eabi.c
@@ -0,0 +1,29 @@
+/*
+ * EABI routines
+ */
+
+#include <xen/types.h>
+#include <xen/lib.h>
+
+void __aeabi_memcpy(void *dest, const void *src, size_t n)
+{
+       (void)memcpy(dest, src, n);
+}
+
+void __aeabi_memmove(void *dest, const void *src, size_t n)
+{
+       (void)memmove(dest, src, n);
+}
+
+void __aeabi_memset(void *s, size_t n, int c)
+{
+       (void)memset(s, c, n);
+}
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.