Re: l4/sys/syscalls.h: No such file or directory

Adam Lackorzynski <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
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                 [email protected]
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.