a99989af40
This patch moves the thread operations from the 'Cpu_session' to the 'Cpu_thread' interface. A noteworthy semantic change is the meaning of the former 'exception_handler' function, which used to define both, the default exception handler or a thread-specific signal handler. Now, the 'Cpu_session::exception_sigh' function defines the CPU-session-wide default handler whereas the 'Cpu_thread::exception_sigh' function defines the thread-specific one. To retain the ability to create 'Child' objects without invoking a capability, the child's initial thread must be created outside the 'Child::Process'. It is now represented by the 'Child::Initial_thread', which is passed as argument to the 'Child' constructor. Fixes #1939
31 lines
642 B
C++
31 lines
642 B
C++
/*
|
|
* \brief Platform-specific parts of core's CPU-service
|
|
* \author Martin Stein
|
|
* \date 2012-04-17
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2009-2013 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.
|
|
*/
|
|
|
|
/* Genode includes */
|
|
#include <base/printf.h>
|
|
|
|
/* core includes */
|
|
#include <cpu_session_component.h>
|
|
|
|
using namespace Genode;
|
|
|
|
|
|
Dataspace_capability Cpu_thread_component::utcb()
|
|
{
|
|
PERR("%s: Not implemented", __PRETTY_FUNCTION__);
|
|
return Dataspace_capability();
|
|
}
|
|
|
|
|
|
Cpu_session::Quota Cpu_session_component::quota() { return Quota(); }
|