2013-03-04 11:20:42 +01:00
|
|
|
/*
|
|
|
|
* \brief Platform specific part of memory allocation
|
2014-01-24 11:54:51 +01:00
|
|
|
* \author Alexander Boettcher
|
2013-03-04 11:20:42 +01:00
|
|
|
* \date 2013-03-18
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2013-2013 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _X86__PLATFORM__LX_MEM_
|
|
|
|
#define _X86__PLATFORM__LX_MEM_
|
|
|
|
|
2014-06-19 16:37:31 +02:00
|
|
|
#include <base/cache.h>
|
|
|
|
|
2013-03-04 11:20:42 +01:00
|
|
|
class Backend_memory {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
static Genode::Ram_dataspace_capability alloc(Genode::addr_t size,
|
2014-06-19 16:37:31 +02:00
|
|
|
Genode::Cache_attribute);
|
2014-01-24 11:54:51 +01:00
|
|
|
|
|
|
|
static void free(Genode::Ram_dataspace_capability cap);
|
2013-03-04 11:20:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _X86__PLATFORM__LX_MEM_ */
|