mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-11 21:45:37 +00:00
This patch moves details about the stack allocation and organization the base-internal headers. Thereby, I replaced the notion of "thread contexts" by "stacks" as this term is much more intuitive. The fact that we place thread-specific information at the bottom of the stack is not worth introducing new terminology. Issue #1832
39 lines
889 B
C++
39 lines
889 B
C++
/*
|
|
* \brief Platform-specific stack area definitions
|
|
* \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.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__SPEC__X86__BASE__NATIVE_CONFIG_H_
|
|
#define _INCLUDE__SPEC__X86__BASE__NATIVE_CONFIG_H_
|
|
|
|
#include <base/stdint.h>
|
|
|
|
namespace Genode {
|
|
|
|
struct Native_config
|
|
{
|
|
/**
|
|
* Stack area configuration
|
|
*/
|
|
static constexpr addr_t stack_area_virtual_base() {
|
|
return 0x40000000UL; }
|
|
static constexpr addr_t stack_area_virtual_size() {
|
|
return 0x10000000UL; }
|
|
|
|
/**
|
|
* Size of virtual address region holding the stack of one thread
|
|
*/
|
|
static constexpr addr_t stack_virtual_size() { return 0x00100000UL; }
|
|
};
|
|
}
|
|
|
|
#endif /* _INCLUDE__SPEC__X86__BASE__NATIVE_CONFIG_H_ */
|