]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/moe/server/src/dataspace_static.h
update
[l4.git] / l4 / pkg / moe / server / src / dataspace_static.h
1 /*
2  * (c) 2008-2009 Alexander Warg <warg@os.inf.tu-dresden.de>
3  *     economic rights: Technische Universität Dresden (Germany)
4  *
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.
8  */
9 #pragma once
10
11 #include "dataspace_cont.h"
12
13 namespace Moe {
14
15 class Dataspace_static : public Dataspace_cont
16 {
17 public:
18   Dataspace_static(void *start, unsigned long size, unsigned long flags = 0) 
19   : Dataspace_cont(start, size, flags) {}
20   virtual ~Dataspace_static() throw() {}
21   virtual int pre_allocate(l4_addr_t, l4_size_t, unsigned) { return 0; }
22   bool is_static() const throw() { return true; }
23   void *operator new (size_t);
24   void operator delete (void *m) throw();
25 };
26
27 };
28
29