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.
14 #include "sched_proxy.h"
16 #include <l4/cxx/ipc_server>
18 class App_task : public L4::Server_object
21 L4::Cap<L4::Task> _task;
22 L4::Cap<L4::Thread> _thread;
23 L4::Cap<L4::Log> _log;
31 static L4::Cap<L4Re::Mem_alloc> allocator()
32 { return L4Re::Env::env()->mem_alloc(); }
33 int dispatch(l4_umword_t obj, L4::Ipc_iostream &ios);
36 Region_map *rm() { return &_rm; }
38 void task_cap(L4::Cap<L4::Task> const &c) { _task = c; }
39 void thread_cap(L4::Cap<L4::Thread> const &c) { _thread = c; }
41 L4::Cap<L4::Task> task_cap() const { return _task; }
42 L4::Cap<L4::Thread> thread_cap() const { return _thread; }