#
# Jailhouse, a Linux-based partitioning hypervisor
#
-# Copyright (c) Siemens AG, 2015
+# Copyright (c) Siemens AG, 2015, 2016
#
# Authors:
# Jan Kiszka <jan.kiszka@siemens.com>
ccflags-y := -ffunction-sections
lib-y := header.o gic.o printk.o timer.o
+lib-y += ../string.o
lib-$(CONFIG_ARM_GIC) += gic-v2.o
lib-$(CONFIG_ARM_GIC_V3) += gic-v3.o
lib-$(CONFIG_SERIAL_AMBA_PL011) += uart-pl011.o
*(volatile u32 *)address = value;
}
-static inline void *memset(void *addr, int val, unsigned int size)
-{
- char *s = addr;
- unsigned int i;
- for (i = 0; i < size; i++)
- *s++ = val;
-
- return addr;
-}
+void *memset(void *s, int c, unsigned long n);
extern unsigned long printk_uart_base;
void printk(const char *fmt, ...);
--- /dev/null
+/*
+ * Jailhouse, a Linux-based partitioning hypervisor
+ *
+ * Copyright (c) Siemens AG, 2016
+ *
+ * Authors:
+ * Jan Kiszka <jan.kiszka@siemens.com>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See
+ * the COPYING file in the top-level directory.
+ */
+
+#include <inmate.h>
+
+void *memset(void *s, int c, unsigned long n)
+{
+ u8 *p = s;
+
+ while (n-- > 0)
+ *p++ = c;
+ return s;
+}
#
# Jailhouse, a Linux-based partitioning hypervisor
#
-# Copyright (c) Siemens AG, 2015
+# Copyright (c) Siemens AG, 2015, 2016
#
# Authors:
# Jan Kiszka <jan.kiszka@siemens.com>
always := lib.a lib32.a
TARGETS := header.o hypercall.o ioapic.o printk.o smp.o
-TARGETS += ../pci.o
+TARGETS += ../pci.o ../string.o
TARGETS_64_ONLY := int.o mem.o pci.o timing.o
ccflags-y := -ffunction-sections