2 * (c) 2008-2009 Technische Universität Dresden
3 * This file is part of TUD:OS and distributed under the terms of the
4 * GNU General Public License 2.
5 * Please see the COPYING-GPL-2 file for details.
10 #include "remote_mem.h"
14 Stack::add(l4_addr_t start, l4_umword_t size, Region_map *rm,
15 L4::Cap<L4Re::Dataspace> m, unsigned long offs, unsigned flags,
16 unsigned char align, char const *what)
19 unsigned rh_flags = flags;
21 rh_flags |= L4Re::Rm::Reserved;
23 void *x = rm->attach((void*)start, size, Region_handler(m, L4_INVALID_CAP, offs, rh_flags),
25 if (x == L4_INVALID_PTR)
29 a.start = (l4_addr_t)x;