genode/repos/base-okl4/src/core/okl4_pd_session_component.cc

29 lines
687 B
C++

/*
* \brief Core implementation of the PD session interface extension
* \author Stefan Kalkowski
* \date 2009-06-21
*/
/*
* 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.
*/
/* core includes */
#include <util.h>
#include <pd_session_component.h>
#include <cpu_session_component.h>
using namespace Genode;
void Pd_session_component::space_pager(Thread_capability thread)
{
Object_pool<Cpu_thread_component>::Guard
cpu_thread(_thread_ep->lookup_and_lock(thread));
if (!cpu_thread) return;
_pd.space_pager(cpu_thread->platform_thread());
}