core: unify Pd_session_component across kernels

Issue #2407
This commit is contained in:
Norman Feske
2017-05-09 17:55:03 +02:00
committed by Christian Helmuth
parent 3fc2a798b2
commit a96919632e
12 changed files with 11 additions and 68 deletions

View File

@ -17,6 +17,7 @@
#define _CORE__INCLUDE__PLATFORM_PD_H_
#include <base/allocator.h>
#include <parent/parent.h>
namespace Genode {
struct Platform_pd;
@ -28,6 +29,8 @@ struct Genode::Platform_pd
Platform_pd(Allocator *, char const *) { }
bool bind_thread(Platform_thread *) { return true; }
void assign_parent(Capability<Parent>) { }
};
#endif /* _CORE__INCLUDE__PLATFORM_PD_H_ */

View File

@ -14,8 +14,8 @@ SRC_CC = main.cc \
cpu_session_component.cc \
cpu_session_support.cc \
cpu_thread_component.cc \
pd_session_component.cc \
pd_upgrade_ram_quota.cc \
pd_assign_pci.cc \
dataspace_component.cc \
native_pd_component.cc \
native_cpu_component.cc \
@ -53,6 +53,7 @@ vpath cpu_session_component.cc $(GEN_CORE_DIR)
vpath cpu_session_support.cc $(GEN_CORE_DIR)
vpath cpu_thread_component.cc $(GEN_CORE_DIR)
vpath pd_upgrade_ram_quota.cc $(GEN_CORE_DIR)
vpath pd_assign_pci.cc $(GEN_CORE_DIR)
vpath capability_space.cc $(GEN_CORE_DIR)
vpath rpc_cap_factory_l4.cc $(GEN_CORE_DIR)
vpath ram_dataspace_factory.cc $(GEN_CORE_DIR)

View File

@ -1,27 +0,0 @@
/*
* \brief Core implementation of the PD session interface
* \author Norman Feske
* \date 2012-08-15
*/
/*
* Copyright (C) 2012-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.
*/
/* core-local includes */
#include <pd_session_component.h>
using namespace Genode;
void Pd_session_component::assign_parent(Capability<Parent> parent)
{
_parent = parent;
}
bool Pd_session_component::assign_pci(addr_t, uint16_t) { return true; }