mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 10:01:57 +00:00
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:
parent
0a0f0031a4
commit
c04ddbf6d8
@ -15,7 +15,7 @@ VERBOSE_LEVEL ?= 0
|
|||||||
#
|
#
|
||||||
# Sources
|
# 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
|
# TARGET to trigger rump build
|
||||||
|
30
repos/dde_rump/src/lib/rump/misc.cc
Normal file
30
repos/dde_rump/src/lib/rump/misc.cc
Normal 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);
|
||||||
|
}
|
@ -154,18 +154,3 @@ void File_system::init(Server::Entrypoint &ep)
|
|||||||
|
|
||||||
|
|
||||||
bool File_system::supports_symlinks() { return _supports_symlinks; }
|
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);
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user