From 9c1c574bcaf7e858f6d52758e0bb5f06810c661f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 30 Aug 2000 07:55:39 +0000 Subject: 2000-08-30 Joel Sherrill * 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. --- c/src/exec/rtems/ChangeLog | 6 ++++++ c/src/exec/rtems/src/taskstart.c | 43 +++++----------------------------------- 2 files changed, 11 insertions(+), 38 deletions(-) (limited to 'c/src/exec/rtems') diff --git a/c/src/exec/rtems/ChangeLog b/c/src/exec/rtems/ChangeLog index 6b3c637492..f5315bcd88 100644 --- a/c/src/exec/rtems/ChangeLog +++ b/c/src/exec/rtems/ChangeLog @@ -1,3 +1,9 @@ +2000-08-30 Joel Sherrill + + * 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. + 2000-08-30 Joel Sherrill * taskstart.c: Added 1st cut at rtems_task_start_main_style. 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 - ); -} -- cgit v1.2.3