2014-01-24 12:06:21 +01:00
|
|
|
/*
|
2016-01-23 14:42:55 +01:00
|
|
|
* \brief Platform-specific stack area definitions
|
2014-01-24 12:06:21 +01:00
|
|
|
* \author Stefan Kalkowski
|
|
|
|
* \date 2014-01-24
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2016-01-20 20:52:51 +01:00
|
|
|
#ifndef _INCLUDE__SPEC__X86__BASE__NATIVE_CONFIG_H_
|
|
|
|
#define _INCLUDE__SPEC__X86__BASE__NATIVE_CONFIG_H_
|
2014-01-24 12:06:21 +01:00
|
|
|
|
|
|
|
#include <base/stdint.h>
|
|
|
|
|
|
|
|
namespace Genode {
|
|
|
|
|
|
|
|
struct Native_config
|
|
|
|
{
|
|
|
|
/**
|
2016-01-23 14:42:55 +01:00
|
|
|
* Stack area configuration
|
2014-01-24 12:06:21 +01:00
|
|
|
*/
|
2016-01-23 14:42:55 +01:00
|
|
|
static constexpr addr_t stack_area_virtual_base() {
|
2014-01-24 12:06:21 +01:00
|
|
|
return 0x40000000UL; }
|
2016-01-23 14:42:55 +01:00
|
|
|
static constexpr addr_t stack_area_virtual_size() {
|
2014-01-24 12:06:21 +01:00
|
|
|
return 0x10000000UL; }
|
|
|
|
|
|
|
|
/**
|
2016-01-23 14:42:55 +01:00
|
|
|
* Size of virtual address region holding the stack of one thread
|
2014-01-24 12:06:21 +01:00
|
|
|
*/
|
2016-01-23 14:42:55 +01:00
|
|
|
static constexpr addr_t stack_virtual_size() { return 0x00100000UL; }
|
2014-01-24 12:06:21 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2016-01-20 20:52:51 +01:00
|
|
|
#endif /* _INCLUDE__SPEC__X86__BASE__NATIVE_CONFIG_H_ */
|