mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
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
30 lines
777 B
C++
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());
|
|
}
|