2011-12-22 15:19:25 +00:00
|
|
|
/*
|
|
|
|
* \brief L4Re functions needed by L4Linux
|
|
|
|
* \author Stefan Kalkowski
|
|
|
|
* \date 2011-03-17
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 20:44:47 +00:00
|
|
|
* Copyright (C) 2011-2013 Genode Labs GmbH
|
2011-12-22 15:19:25 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _L4__RE__C__MEM_ALLOC_H_
|
|
|
|
#define _L4__RE__C__MEM_ALLOC_H_
|
|
|
|
|
|
|
|
#include <l4/re/env.h>
|
|
|
|
#include <l4/sys/consts.h>
|
|
|
|
|
|
|
|
#include <l4/re/c/dataspace.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
enum l4re_ma_flags {
|
|
|
|
L4RE_MA_CONTINUOUS = 0x01,
|
|
|
|
L4RE_MA_PINNED = 0x02,
|
|
|
|
L4RE_MA_SUPER_PAGES = 0x04,
|
|
|
|
};
|
|
|
|
|
|
|
|
L4_CV long l4re_ma_alloc(unsigned long size, l4re_ds_t const mem,
|
|
|
|
unsigned long flags);
|
|
|
|
|
2013-08-06 15:09:26 +00:00
|
|
|
L4_CV long l4re_ma_alloc_align(unsigned long size, l4re_ds_t const mem,
|
|
|
|
unsigned long flags, unsigned long align);
|
|
|
|
|
2011-12-22 15:19:25 +00:00
|
|
|
L4_CV long l4re_ma_free(l4re_ds_t const mem);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _L4__RE__C__MEM_ALLOC_H_ */
|