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

Valentin Hauner valentinhauner at gmx.de
Thu Sep 11 14:13:45 CEST 2014


On 09/10/2014 09:34 PM, Björn Döbel wrote:
> Are you looking for examples on using the l4_task_map() system call?
No, I'm already using l4_task_map. But Adam suggested to "map everything
from _stext & L4_PAGEMASK to _end & L4_PAGEMASK to all tasks", but I
don't know how to realize this. What does "everything" from _stext to
_end mean?

The only example that I've found looking for "_stext" and "_end" on your
website was the outdated one posted yesterday.

I've tried the following:

> l4_task_map(task_cap, L4RE_THIS_TASK_CAP,
>  l4_fpage(((l4_umword_t)_stext) & L4_PAGEMASK, L4_PAGESHIFT, L4_FPAGE_RW),
>  l4_map_control((l4_umword_t)_stext, 0, L4_MAP_ITEM_MAP));
> l4_task_map(task_cap, L4RE_THIS_TASK_CAP,
>  l4_fpage(((l4_umword_t)_end) & L4_PAGEMASK, L4_PAGESHIFT, L4_FPAGE_RW),
>  l4_map_control((l4_umword_t)_end, 0, L4_MAP_ITEM_MAP));

But of course, _stext and _end are undeclared.
Unfortunately, there are no further information about it on

Best regards,

More information about the l4-hackers mailing list