Files
genode/repos/base-linux/src/lib/base/attach_stack_area.cc
Norman Feske 61926ebc07 base: introduce platform_init function
The new 'init_platform' function performs the platform-specific
component-local low-level initialization. It allows for the
differentiation between core and regular components as well as
kernel-dependent peculiarities.

This patch introduces a consistent notion of a 'Platform'. Within core,
the 'Platform' contains the kernel-specific initialization. Outside
core, the platform sets up the interplay with the parent component. In
all cases, the platform is constructed while running on the initial
stack.

Issue #4784
2023-03-15 17:05:01 +01:00

30 lines
777 B
C++

/*
* \brief Attach stack area to local address space
* \author Norman Feske
* \date 2016-07-06
*
* This function resides in a distinct compilation unit because it is not
* used for hybrid components where the Genode::Thread API is implemented
* via POSIX threads.
*/
/*
* 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.
*/
/* base-internal includes */
#include <base/internal/platform.h>
using namespace Genode;
void Platform::_attach_stack_area()
{
pd._address_space.attach_at(pd._stack_area.dataspace(),
stack_area_virtual_base(),
stack_area_virtual_size());
}