base: provide generic cpu/string.h

This patch uses the formerly x86-specific cpu/string.h for all
architectures if no spec/<arch> variant exists.

Issue #4456
This commit is contained in:
Norman Feske 2022-12-08 15:09:01 +01:00 committed by Christian Helmuth
parent 0ebb572f48
commit 2a1240d1e9
3 changed files with 4 additions and 66 deletions

View File

@ -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_ */

View File

@ -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_ */

View File

@ -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_ */