I think this can be done with the User_extensions_thread_create_extension. How you do it I'm not sure exactly.<br><br>With the Class API task create, I don't think that it can be done directly. However, the functionality is certainly supported from some other interfaces.<br>
cpukit/rtems/src/taskcreate.c<br>174 status = _Thread_Initialize(<br>175 &_RTEMS_tasks_Information,<br>176 the_thread,<br>177 NULL,<br>178 stack_size,<br>179 is_fp,<br>180 core_priority,<br>181 _Modes_Is_preempt(initial_modes) ? true : false,<br>
182 _Modes_Is_timeslice(initial_modes) ?<br>183 THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE :<br>184 THREAD_CPU_BUDGET_ALGORITHM_NONE,<br>185 NULL, /* no budget algorithm callout */<br>186 _Modes_Get_interrupt_level(initial_modes),<br>
187 (Objects_Name) name<br>188 );<br><br>The third argument to _Thread_Initialize is interpreted as an initial stack location, but the classic API does not use the field (POSIX does I believe).<br><br>-Gedare<br><br>
<div class="gmail_quote">On Wed, Nov 17, 2010 at 2:23 PM, Cudmore, Alan P. (GSFC-5820) <span dir="ltr"><<a href="mailto:alan.p.cudmore@nasa.gov">alan.p.cudmore@nasa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
When creating a task, can the stack be allocated from an absolute address rather than having RTEMS allocate it from the workspace?<br>
<br>
Thanks,<br>
Alan<br>
<br>
<br>
_______________________________________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
</blockquote></div><br>