summaryrefslogtreecommitdiffstats
path: root/src/arch/arm32/include/bits/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm32/include/bits/string.h')
-rw-r--r--src/arch/arm32/include/bits/string.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/arch/arm32/include/bits/string.h b/src/arch/arm32/include/bits/string.h
new file mode 100644
index 000000000..5b1c1505d
--- /dev/null
+++ b/src/arch/arm32/include/bits/string.h
@@ -0,0 +1,60 @@
+#ifndef BITS_STRING_H
+#define BITS_STRING_H
+
+FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+
+/** @file
+ *
+ * String functions
+ *
+ */
+
+/**
+ * Fill memory region
+ *
+ * @v dest Destination region
+ * @v character Fill character
+ * @v len Length
+ * @ret dest Destination region
+ */
+static inline __attribute__ (( always_inline )) void *
+memset ( void *dest, int character, size_t len ) {
+
+ /* Not yet optimised */
+ generic_memset ( dest, character, len );
+ return dest;
+}
+
+/**
+ * Copy memory region
+ *
+ * @v dest Destination region
+ * @v src Source region
+ * @v len Length
+ * @ret dest Destination region
+ */
+static inline __attribute__ (( always_inline )) void *
+memcpy ( void *dest, const void *src, size_t len ) {
+
+ /* Not yet optimised */
+ generic_memcpy ( dest, src, len );
+ return dest;
+}
+
+/**
+ * Copy (possibly overlapping) memory region
+ *
+ * @v dest Destination region
+ * @v src Source region
+ * @v len Length
+ * @ret dest Destination region
+ */
+static inline __attribute__ (( always_inline )) void *
+memmove ( void *dest, const void *src, size_t len ) {
+
+ /* Not yet optimised */
+ generic_memmove ( dest, src, len );
+ return dest;
+}
+
+#endif /* BITS_STRING_H */