2 * (c) 2008-2009 Alexander Warg <warg@os.inf.tu-dresden.de>
3 * economic rights: Technische Universität Dresden (Germany)
5 * This file is part of TUD:OS and distributed under the terms of the
6 * GNU General Public License 2.
7 * Please see the COPYING-GPL-2 file for details.
11 #include "dataspace.h"
15 #include "sched_proxy.h"
17 #include <l4/cxx/ipc_server>
18 #include <l4/sys/capability>
22 class App_task : public L4::Server_object
26 L4::Cap<L4::Task> _task;
27 L4::Cap<L4::Thread> _thread;
38 Allocator *allocator() const { return _alloc; }
39 void set_allocator(Allocator *a) { _alloc = a; }
41 int dispatch(l4_umword_t obj, L4::Ipc_iostream &ios);
44 Region_map *rm() { return &_rm; }
46 void task_cap(L4::Cap<L4::Task> const &c) { _task = c; }
47 void thread_cap(L4::Cap<L4::Thread> const &c) { _thread = c; }
49 L4::Cap<L4::Task> task_cap() const { return _task; }
50 L4::Cap<L4::Thread> thread_cap() const { return _thread; }