summaryrefslogtreecommitdiffstats
path: root/c/src/exec/rtems/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-30 07:55:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-30 07:55:39 +0000
commit9c1c574bcaf7e858f6d52758e0bb5f06810c661f (patch)
treeabb7fea4e8f29ff0e3f662ee519b00105541ac88 /c/src/exec/rtems/src
parent2000-08-30 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-9c1c574bcaf7e858f6d52758e0bb5f06810c661f.tar.bz2
2000-08-30 Joel Sherrill <joel.sherrill@OARcorp.com>
* taskstart.c: Removed 1st cut at rtems_task_start_main_style. Only committed this so it could be easily revisited as we discussing moving main() to user space from BSP space.
Diffstat (limited to 'c/src/exec/rtems/src')
-rw-r--r--c/src/exec/rtems/src/taskstart.c43
1 files changed, 5 insertions, 38 deletions
diff --git a/c/src/exec/rtems/src/taskstart.c b/c/src/exec/rtems/src/taskstart.c
index ab31e4599e..6764333d87 100644
--- a/c/src/exec/rtems/src/taskstart.c
+++ b/c/src/exec/rtems/src/taskstart.c
@@ -46,12 +46,10 @@
* error code - if unsuccessful
*/
-rtems_status_code rtems_task_start_support(
- rtems_id id,
- rtems_task_entry entry_point,
- Thread_Start_types arg_style,
- unsigned32 u32_arg,
- void *void_arg
+rtems_status_code rtems_task_start(
+ rtems_id id,
+ rtems_task_entry entry_point,
+ unsigned32 argument
)
{
register Thread_Control *the_thread;
@@ -74,7 +72,7 @@ rtems_status_code rtems_task_start_support(
case OBJECTS_LOCAL:
if ( _Thread_Start(
- the_thread, arg_style, entry_point, void_arg, u32_arg ) ) {
+ the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
@@ -84,34 +82,3 @@ rtems_status_code rtems_task_start_support(
return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */
}
-
-rtems_status_code rtems_task_start(
- rtems_id id,
- rtems_task_entry entry_point,
- unsigned32 argument
-)
-{
- return rtems_task_start_support(
- id,
- entry_point,
- THREAD_START_NUMERIC,
- argument,
- NULL
- );
-}
-
-rtems_status_code rtems_task_start_main_style(
- rtems_id id,
- rtems_task (*entry_point)(int, char **),
- int argc,
- char **argv
-)
-{
- return rtems_task_start_support(
- id,
- (rtems_task_entry) entry_point,
- THREAD_START_BOTH_NUMERIC_FIRST,
- argc,
- argv
- );
-}