summaryrefslogtreecommitdiff
path: root/arch/x86/purgatory/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/purgatory/string.c')
-rw-r--r--arch/x86/purgatory/string.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/purgatory/string.c b/arch/x86/purgatory/string.c
index d886b1fa36f0..795ca4f2cb3c 100644
--- a/arch/x86/purgatory/string.c
+++ b/arch/x86/purgatory/string.c
@@ -10,4 +10,16 @@
* Version 2. See the file COPYING for more details.
*/
+#include <linux/types.h>
+
#include "../boot/string.c"
+
+void *memcpy(void *dst, const void *src, size_t len)
+{
+ return __builtin_memcpy(dst, src, len);
+}
+
+void *memset(void *dst, int c, size_t len)
+{
+ return __builtin_memset(dst, c, len);
+}