Hi,
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 os.inf.tu-dresden.de: https://www.google.de/search?q=_stext+site%3Aos.inf.tu-dresden.de
Best regards, Valentin