diff --git a/repos/base-fiasco/lib/mk/core-fiasco.inc b/repos/base-fiasco/lib/mk/core-fiasco.inc index 1223cad37e..ad0e9d7294 100644 --- a/repos/base-fiasco/lib/mk/core-fiasco.inc +++ b/repos/base-fiasco/lib/mk/core-fiasco.inc @@ -21,7 +21,6 @@ SRC_CC += stack_area.cc \ pager.cc \ pager_ep.cc \ pager_object.cc \ - pd_session_component.cc \ rpc_cap_factory_l4.cc \ ram_dataspace_factory.cc \ pd_assign_pci.cc \ @@ -57,7 +56,6 @@ vpath cap_session_component.cc $(GEN_CORE_DIR) 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_session_component.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) diff --git a/repos/base-foc/lib/mk/core-foc.inc b/repos/base-foc/lib/mk/core-foc.inc index 3fbd42874a..a6dd2ab601 100644 --- a/repos/base-foc/lib/mk/core-foc.inc +++ b/repos/base-foc/lib/mk/core-foc.inc @@ -19,7 +19,6 @@ SRC_CC += stack_area.cc \ main.cc \ pager.cc \ pager_object.cc \ - pd_session_component.cc \ pd_assign_pci.cc \ pd_upgrade_ram_quota.cc \ native_cpu_component.cc \ @@ -57,7 +56,6 @@ vpath default_log.cc $(GEN_CORE_DIR) vpath io_mem_session_component.cc $(GEN_CORE_DIR) vpath io_mem_session_support.cc $(GEN_CORE_DIR) vpath main.cc $(GEN_CORE_DIR) -vpath pd_session_component.cc $(GEN_CORE_DIR) vpath pd_assign_pci.cc $(GEN_CORE_DIR) vpath pd_upgrade_ram_quota.cc $(GEN_CORE_DIR) vpath ram_session_component.cc $(GEN_CORE_DIR) diff --git a/repos/base-hw/lib/mk/core-hw.inc b/repos/base-hw/lib/mk/core-hw.inc index 1627994bb7..d19a3d0e2f 100644 --- a/repos/base-hw/lib/mk/core-hw.inc +++ b/repos/base-hw/lib/mk/core-hw.inc @@ -29,7 +29,6 @@ SRC_CC += io_mem_session_component.cc SRC_CC += io_mem_session_support.cc SRC_CC += irq_session_component.cc SRC_CC += main.cc -SRC_CC += pd_session_component.cc SRC_CC += pd_upgrade_ram_quota.cc SRC_CC += pd_assign_pci.cc SRC_CC += platform.cc diff --git a/repos/base-linux/src/core/include/platform_pd.h b/repos/base-linux/src/core/include/platform_pd.h index af8266a69f..b2dcb8103a 100644 --- a/repos/base-linux/src/core/include/platform_pd.h +++ b/repos/base-linux/src/core/include/platform_pd.h @@ -17,6 +17,7 @@ #define _CORE__INCLUDE__PLATFORM_PD_H_ #include +#include 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) { } }; #endif /* _CORE__INCLUDE__PLATFORM_PD_H_ */ diff --git a/repos/base-linux/src/core/linux/target.mk b/repos/base-linux/src/core/linux/target.mk index fe5fce4b55..024348b456 100644 --- a/repos/base-linux/src/core/linux/target.mk +++ b/repos/base-linux/src/core/linux/target.mk @@ -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) diff --git a/repos/base-linux/src/core/pd_session_component.cc b/repos/base-linux/src/core/pd_session_component.cc deleted file mode 100644 index b6e2a18c05..0000000000 --- a/repos/base-linux/src/core/pd_session_component.cc +++ /dev/null @@ -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 - -using namespace Genode; - - -void Pd_session_component::assign_parent(Capability parent) -{ - _parent = parent; -} - - -bool Pd_session_component::assign_pci(addr_t, uint16_t) { return true; } - diff --git a/repos/base-nova/lib/mk/core-nova.inc b/repos/base-nova/lib/mk/core-nova.inc index ec9a7e67c0..c1aa90600c 100644 --- a/repos/base-nova/lib/mk/core-nova.inc +++ b/repos/base-nova/lib/mk/core-nova.inc @@ -22,7 +22,6 @@ SRC_CC += stack_area.cc \ irq_session_component.cc \ main.cc \ pager.cc \ - pd_session_component.cc \ native_cpu_component.cc \ native_pd_component.cc \ pd_upgrade_ram_quota.cc \ @@ -57,7 +56,6 @@ vpath rom_session_component.cc $(GEN_CORE_DIR) 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_session_component.cc $(GEN_CORE_DIR) vpath pd_upgrade_ram_quota.cc $(GEN_CORE_DIR) vpath region_map_component.cc $(GEN_CORE_DIR) vpath trace_session_component.cc $(GEN_CORE_DIR) diff --git a/repos/base-okl4/lib/mk/core-okl4.inc b/repos/base-okl4/lib/mk/core-okl4.inc index be09ee35b4..5a9b4ef2a9 100644 --- a/repos/base-okl4/lib/mk/core-okl4.inc +++ b/repos/base-okl4/lib/mk/core-okl4.inc @@ -24,7 +24,6 @@ SRC_CC += stack_area.cc \ pager.cc \ pager_ep.cc \ pager_object.cc \ - pd_session_component.cc \ pd_upgrade_ram_quota.cc \ pd_assign_pci.cc \ rpc_cap_factory_l4.cc \ @@ -58,7 +57,6 @@ vpath cpu_thread_component.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) -vpath pd_session_component.cc $(GEN_CORE_DIR) vpath pd_upgrade_ram_quota.cc $(GEN_CORE_DIR) vpath pd_assign_pci.cc $(GEN_CORE_DIR) vpath region_map_component.cc $(GEN_CORE_DIR) diff --git a/repos/base-pistachio/lib/mk/core-pistachio.inc b/repos/base-pistachio/lib/mk/core-pistachio.inc index f3a2140326..93fd6908ee 100644 --- a/repos/base-pistachio/lib/mk/core-pistachio.inc +++ b/repos/base-pistachio/lib/mk/core-pistachio.inc @@ -19,7 +19,6 @@ SRC_CC = stack_area.cc \ irq_session_component.cc \ kip.cc \ main.cc \ - pd_session_component.cc \ rpc_cap_factory_l4.cc \ ram_dataspace_factory.cc \ pd_assign_pci.cc \ @@ -53,7 +52,6 @@ vpath rom_session_component.cc $(GEN_CORE_DIR) 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_session_component.cc $(GEN_CORE_DIR) vpath pd_assign_pci.cc $(GEN_CORE_DIR) vpath pd_upgrade_ram_quota.cc $(GEN_CORE_DIR) vpath region_map_component.cc $(GEN_CORE_DIR) diff --git a/repos/base-sel4/lib/mk/core-sel4.mk b/repos/base-sel4/lib/mk/core-sel4.mk index 36f2ddb200..78e50e1fe6 100644 --- a/repos/base-sel4/lib/mk/core-sel4.mk +++ b/repos/base-sel4/lib/mk/core-sel4.mk @@ -8,7 +8,6 @@ SRC_CC += \ cpu_session_component.cc \ cpu_session_support.cc \ cpu_thread_component.cc \ - pd_session_component.cc \ rpc_cap_factory.cc \ ram_dataspace_factory.cc \ pd_assign_pci.cc \ @@ -52,7 +51,6 @@ vpath rom_session_component.cc $(GEN_CORE_DIR) 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_session_component.cc $(GEN_CORE_DIR) vpath pd_assign_pci.cc $(GEN_CORE_DIR) vpath pd_upgrade_ram_quota.cc $(GEN_CORE_DIR) vpath region_map_component.cc $(GEN_CORE_DIR) diff --git a/repos/base/src/core/include/pd_session_component.h b/repos/base/src/core/include/pd_session_component.h index 2a46db2be4..8babfa6ab8 100644 --- a/repos/base/src/core/include/pd_session_component.h +++ b/repos/base/src/core/include/pd_session_component.h @@ -165,7 +165,12 @@ class Genode::Pd_session_component : public Session_object ** PD session interface ** **************************/ - void assign_parent(Capability) override; + void assign_parent(Capability parent) override + { + _parent = parent; + _pd.assign_parent(parent); + } + bool assign_pci(addr_t, uint16_t) override; Signal_source_capability alloc_signal_source() override diff --git a/repos/base/src/core/pd_session_component.cc b/repos/base/src/core/pd_session_component.cc deleted file mode 100644 index a3f80f6425..0000000000 --- a/repos/base/src/core/pd_session_component.cc +++ /dev/null @@ -1,26 +0,0 @@ -/* - * \brief Core implementation of the PD session interface - * \author Christian Helmuth - * \author Norman Feske - * \date 2006-07-17 - */ - -/* - * Copyright (C) 2006-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 -#include -#include - -using namespace Genode; - - -void Pd_session_component::assign_parent(Parent_capability parent) -{ - _pd.assign_parent(parent); -}