2013-09-02 13:37:55 +02:00
|
|
|
/*
|
|
|
|
* \brief Static kernel configuration
|
|
|
|
* \author Martin Stein
|
|
|
|
* \date 2012-11-30
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 13:23:52 +01:00
|
|
|
* Copyright (C) 2012-2017 Genode Labs GmbH
|
2013-09-02 13:37:55 +02:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 13:23:52 +01:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2013-09-02 13:37:55 +02:00
|
|
|
*/
|
|
|
|
|
2017-04-12 10:06:29 +02:00
|
|
|
#ifndef _CORE__KERNEL__CONFIGURATION_H_
|
|
|
|
#define _CORE__KERNEL__CONFIGURATION_H_
|
2013-09-02 13:37:55 +02:00
|
|
|
|
2016-06-15 15:04:54 +02:00
|
|
|
#include <kernel/interface.h>
|
|
|
|
|
2013-09-02 13:37:55 +02:00
|
|
|
namespace Kernel
|
|
|
|
{
|
2015-06-16 10:59:26 +02:00
|
|
|
enum {
|
|
|
|
DEFAULT_STACK_SIZE = 16 * 1024,
|
|
|
|
DEFAULT_TRANSLATION_TABLE_MAX = 128,
|
|
|
|
};
|
2014-10-09 14:24:27 +02:00
|
|
|
|
|
|
|
/* amount of priority bands amongst quota owners in CPU scheduling */
|
|
|
|
constexpr unsigned cpu_priorities = 4;
|
|
|
|
|
|
|
|
/* super period in CPU scheduling and the overall allocatable CPU time */
|
2016-05-18 12:20:04 +02:00
|
|
|
constexpr time_t cpu_quota_us = 1000000;
|
2014-10-09 14:24:27 +02:00
|
|
|
|
|
|
|
/* time slice for the round-robin mode and the idle in CPU scheduling */
|
2016-05-18 12:20:04 +02:00
|
|
|
constexpr time_t cpu_fill_us = 10000;
|
2013-09-02 13:37:55 +02:00
|
|
|
}
|
|
|
|
|
2017-04-12 10:06:29 +02:00
|
|
|
#endif /* _CORE__KERNEL__CONFIGURATION_H_ */
|