l4/sys/syscalls.h: No such file or directory
Adam Lackorzynski
adam at os.inf.tu-dresden.de
Mon Sep 15 00:10:59 CEST 2014
On Sat Sep 13, 2014 at 14:09:28 +0200, Valentin Hauner wrote:
> On 09/11/2014 02:13 PM, Valentin Hauner wrote:
> > What does "everything" from _stext to _end mean?
> OK, I've found a snippet in Moe that seems to fit: It's located in
> ./l4/pkg/moe/server/src/main.cc lines 523 f.
>
> I've adapted it to fit my needs, but the issue is still the same:
>
> > extern char _stext[];
> > extern char _end[];
> >
> > for (unsigned long i = ((unsigned long)_stext & L4_PAGEMASK);
> > i < ((unsigned long)_end & L4_PAGEMASK);
> > i += L4_PAGESIZE)
> > {
> > l4_task_map(task_cap, L4RE_THIS_TASK_CAP,
> > l4_fpage(i, 0, L4_FPAGE_RO),
l4_fpage(i, L4_LOG2_PAGESIZE, L4_FPAGE_RWX),
A size needs to be specified for the fpage. And read-only will not be
enough, as for example, the stack needs to be written by the thread
functions.
> > l4_map_control(i, 0, L4_MAP_ITEM_MAP));
> > }
>
> What's wrong here?
Adam
--
Adam adam at os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
More information about the l4-hackers
mailing list