mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-23 17:17:38 +00:00
base: make stack area base specifiable for core
When running core as the kernel inside every component, a separate stack area for core is needed that is different from the user-land component's one. Ref #2091
This commit is contained in:
committed by
Christian Helmuth
parent
3906568908
commit
ea46c462a4
@ -1,26 +0,0 @@
|
||||
/*
|
||||
* \brief Stack area layout parameters
|
||||
* \author Norman Feske
|
||||
* \date 2016-03-03
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2016-2017 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU Affero General Public License version 3.
|
||||
*/
|
||||
|
||||
#ifndef _INCLUDE__BASE__INTERNAL__STACK_AREA_H_
|
||||
#define _INCLUDE__BASE__INTERNAL__STACK_AREA_H_
|
||||
|
||||
#include <base/stdint.h>
|
||||
|
||||
namespace Genode {
|
||||
|
||||
static constexpr addr_t stack_area_virtual_base() { return 0xa0000000UL; }
|
||||
static constexpr addr_t stack_area_virtual_size() { return 0x10000000UL; }
|
||||
static constexpr addr_t stack_virtual_size() { return 0x00100000UL; }
|
||||
}
|
||||
|
||||
#endif /* _INCLUDE__BASE__INTERNAL__STACK_AREA_H_ */
|
17
repos/base-nova/src/lib/base/stack_area_addr.cc
Normal file
17
repos/base-nova/src/lib/base/stack_area_addr.cc
Normal file
@ -0,0 +1,17 @@
|
||||
/*
|
||||
* \brief Component-local stack area base address for NOVA
|
||||
* \author Stefan Kalkowski
|
||||
* \date 2017-06-02
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2017 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU Affero General Public License version 3.
|
||||
*/
|
||||
|
||||
/* base-internal includes */
|
||||
#include <base/internal/stack_area.h>
|
||||
|
||||
Genode::addr_t Genode::stack_area_virtual_base() { return 0xa0000000UL; }
|
Reference in New Issue
Block a user