diff --git a/repos/base/include/spec/x86/cpu/string.h b/repos/base/include/cpu/string.h similarity index 89% rename from repos/base/include/spec/x86/cpu/string.h rename to repos/base/include/cpu/string.h index fdb3e50dec..c429da2842 100644 --- a/repos/base/include/spec/x86/cpu/string.h +++ b/repos/base/include/cpu/string.h @@ -1,6 +1,7 @@ /* * \brief CPU-specific memcpy * \author Sebastian Sumpf + * \author Johanned Schlatow * \date 2012-08-02 */ @@ -11,8 +12,8 @@ * under the terms of the GNU Affero General Public License version 3. */ -#ifndef _INCLUDE__SPEC__X86__CPU__STRING_H_ -#define _INCLUDE__SPEC__X86__CPU__STRING_H_ +#ifndef _INCLUDE__CPU__STRING_H_ +#define _INCLUDE__CPU__STRING_H_ namespace Genode { @@ -58,4 +59,4 @@ namespace Genode { } } -#endif /* _INCLUDE__SPEC__X86__CPU__STRING_H_ */ +#endif /* _INCLUDE__CPU__STRING_H_ */ diff --git a/repos/base/include/spec/arm_64/cpu/string.h b/repos/base/include/spec/arm_64/cpu/string.h deleted file mode 100644 index 2c5050e41f..0000000000 --- a/repos/base/include/spec/arm_64/cpu/string.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * \brief CPU-specific memcpy - * \author Stefan Kalkowski - * \date 2012-08-02 - */ - -/* - * Copyright (C) 2019 Genode Labs GmbH - * - * This file is part of the Genode OS framework, which is distributed - * under the terms of the GNU Affero General Public License version 3. - */ - -#ifndef _INCLUDE__SPEC__ARM_64__CPU__STRING_H_ -#define _INCLUDE__SPEC__ARM_64__CPU__STRING_H_ - -namespace Genode { - - /** - * Copy memory block - * - * \param dst destination memory block - * \param src source memory block - * \param size number of bytes to copy - * - * \return number of bytes not copied - */ - inline size_t memcpy_cpu(void *, const void *, size_t size) { return size; } -} - -#endif /* _INCLUDE__SPEC__ARM_64__CPU__STRING_H_ */ diff --git a/repos/base/include/spec/riscv/cpu/string.h b/repos/base/include/spec/riscv/cpu/string.h deleted file mode 100644 index 9aa9e79ee0..0000000000 --- a/repos/base/include/spec/riscv/cpu/string.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * \brief CPU-specific memcpy - * \author Sebastian Sumpf - * \date 2015-06-01 - */ - -/* - * Copyright (C) 2015-2017 Genode Labs GmbH - * - * This file is part of the Genode OS framework, which is distributed - * under the terms of the GNU Affero General Public License version 3. - */ - -#ifndef _INCLUDE__RISCV__CPU__STRING_H_ -#define _INCLUDE__RISCV__CPU__STRING_H_ - -namespace Genode { - - /** - * Copy memory block - * - * \param dst destination memory block - * \param src source memory block - * \param size number of bytes to copy - * - * \return number of bytes not copied - */ - inline size_t memcpy_cpu(void *, const void *, size_t size) { - return size; } -} - -#endif /* _INCLUDE__RISCV__CPU__STRING_H_ */