Re: <INTEGRITY RTOS> Passing arguments to an entry point function of the CreateTask() task kernel call



Alex Vinokur wrote:
[snip]
int main()
{
Task task;
char* ptr = "ABCDXYZ";

CHECK (CreateProtectedTask(1, (Address)entry_point, 0x1000,
"the-task", &task));
CHECK (SetTaskIdentification(task, (Address)ptr));

CHECK (RunTask(task));

CHECK (CloseProtectedTask(task));


exit(0);
}


---
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn

.



Relevant Pages