24 lines
569 B
C
24 lines
569 B
C
|
/*
|
||
|
* \brief Page size utilities
|
||
|
* \author Norman Feske
|
||
|
* \date 2016-03-08
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
* Copyright (C) 2016 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 _INCLUDE__BASE__INTERNAL__PAGE_SIZE_H_
|
||
|
#define _INCLUDE__BASE__INTERNAL__PAGE_SIZE_H_
|
||
|
|
||
|
namespace Genode
|
||
|
{
|
||
|
constexpr size_t get_page_size_log2() { return 12; }
|
||
|
constexpr size_t get_page_size() { return 1 << get_page_size_log2(); }
|
||
|
}
|
||
|
|
||
|
#endif /* _INCLUDE__BASE__INTERNAL__PAGE_SIZE_H_ */
|