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 /** 16 * Dynamically allocatable dataspace based on a contiguous region of RAM. 17 * 18 * This type of dataspace is always fully preallocated. 19 */ 20 class Dataspace_anon : public Dataspace_cont 21 { 22 public: 23 Dataspace_anon(long size, Flags flags = L4Re::Dataspace::F::RWX, 24 unsigned char page_shift = L4_PAGESHIFT); 25 virtual ~Dataspace_anon(); 26 is_static()27 bool is_static() const throw() override { return false; } pre_allocate(l4_addr_t,l4_size_t,unsigned)28 int pre_allocate(l4_addr_t, l4_size_t, unsigned) override { return 0; } 29 }; 30 31 }; 32