dde_rump: move memcpy() to rump lib

On ARM in one way or another 'string.h' prototypes will be used. Move
the definitions from rump_fs to the rump library because it is needed
by all rump based servers running on ARM.

Issue #1141.
This commit is contained in:
Josef Söntgen 2014-04-30 15:17:50 +02:00 committed by Norman Feske
parent 0a0f0031a4
commit c04ddbf6d8
3 changed files with 31 additions and 16 deletions

View File

@ -15,7 +15,7 @@ VERBOSE_LEVEL ?= 0
#
# Sources
#
SRC_CC = dummies.cc hypercall.cc bootstrap.cc io.cc sync.cc
SRC_CC = dummies.cc hypercall.cc bootstrap.cc io.cc sync.cc misc.cc
#
# TARGET to trigger rump build

View File

@ -0,0 +1,30 @@
/**
* \brief Misc functions
* \author Sebastian Sumpf
* \date 2014-01-17
*/
/*
* Copyright (C) 2014 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
/* Genode includes */
#include <util/string.h>
/*
* On some platforms (namely ARM) we end-up pulling in string.h prototypes
*/
extern "C" void *memcpy(void *d, void *s, Genode::size_t n)
{
return Genode::memcpy(d, s, n);
}
extern "C" void *memset(void *s, int c, Genode::size_t n)
{
return Genode::memset(s, c, n);
}

View File

@ -154,18 +154,3 @@ void File_system::init(Server::Entrypoint &ep)
bool File_system::supports_symlinks() { return _supports_symlinks; }
/*
* On some platforms we end-up pulling in string.h prototypes
*/
extern "C" void *memcpy(void *d, void *s, size_t n)
{
return Genode::memcpy(d, s, n);
}
extern "C" void *memset(void *s, int c, size_t n)
{
return Genode::memset(s, c, n);
}