Changeset 9c1c574b in rtems


Ignore:
Timestamp:
Aug 30, 2000, 7:55:39 AM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c7b98723
Parents:
67ebbcf
Message:

2000-08-30 Joel Sherrill <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.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/rtems/ChangeLog

    r67ebbcf r9c1c574b  
     12000-08-30      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * taskstart.c: Removed 1st cut at rtems_task_start_main_style.
     4        Only committed this so it could be easily revisited as we
     5        discussing moving main() to user space from BSP space.
     6
    172000-08-30      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/exec/rtems/src/taskstart.c

    r67ebbcf r9c1c574b  
    4747 */
    4848
    49 rtems_status_code rtems_task_start_support(
    50   rtems_id            id,
    51   rtems_task_entry    entry_point,
    52   Thread_Start_types  arg_style,
    53   unsigned32          u32_arg,
    54   void               *void_arg
     49rtems_status_code rtems_task_start(
     50  rtems_id         id,
     51  rtems_task_entry entry_point,
     52  unsigned32       argument
    5553)
    5654{
     
    7573    case OBJECTS_LOCAL:
    7674      if ( _Thread_Start(
    77              the_thread, arg_style, entry_point, void_arg, u32_arg ) ) {
     75             the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
    7876        _Thread_Enable_dispatch();
    7977        return RTEMS_SUCCESSFUL;
     
    8583  return RTEMS_INTERNAL_ERROR;   /* unreached - only to remove warnings */
    8684}
    87 
    88 rtems_status_code rtems_task_start(
    89   rtems_id         id,
    90   rtems_task_entry entry_point,
    91   unsigned32       argument
    92 )
    93 {
    94   return rtems_task_start_support(
    95     id,
    96     entry_point,
    97     THREAD_START_NUMERIC,
    98     argument,
    99     NULL
    100   );
    101 }
    102 
    103 rtems_status_code rtems_task_start_main_style(
    104   rtems_id          id,
    105   rtems_task      (*entry_point)(int, char **),
    106   int               argc,
    107   char            **argv
    108 )
    109 {
    110   return rtems_task_start_support(
    111     id,
    112     (rtems_task_entry) entry_point,
    113     THREAD_START_BOTH_NUMERIC_FIRST,
    114     argc,
    115     argv
    116   );
    117 }
  • cpukit/rtems/ChangeLog

    r67ebbcf r9c1c574b  
     12000-08-30      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * taskstart.c: Removed 1st cut at rtems_task_start_main_style.
     4        Only committed this so it could be easily revisited as we
     5        discussing moving main() to user space from BSP space.
     6
    172000-08-30      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • cpukit/rtems/src/taskstart.c

    r67ebbcf r9c1c574b  
    4747 */
    4848
    49 rtems_status_code rtems_task_start_support(
    50   rtems_id            id,
    51   rtems_task_entry    entry_point,
    52   Thread_Start_types  arg_style,
    53   unsigned32          u32_arg,
    54   void               *void_arg
     49rtems_status_code rtems_task_start(
     50  rtems_id         id,
     51  rtems_task_entry entry_point,
     52  unsigned32       argument
    5553)
    5654{
     
    7573    case OBJECTS_LOCAL:
    7674      if ( _Thread_Start(
    77              the_thread, arg_style, entry_point, void_arg, u32_arg ) ) {
     75             the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
    7876        _Thread_Enable_dispatch();
    7977        return RTEMS_SUCCESSFUL;
     
    8583  return RTEMS_INTERNAL_ERROR;   /* unreached - only to remove warnings */
    8684}
    87 
    88 rtems_status_code rtems_task_start(
    89   rtems_id         id,
    90   rtems_task_entry entry_point,
    91   unsigned32       argument
    92 )
    93 {
    94   return rtems_task_start_support(
    95     id,
    96     entry_point,
    97     THREAD_START_NUMERIC,
    98     argument,
    99     NULL
    100   );
    101 }
    102 
    103 rtems_status_code rtems_task_start_main_style(
    104   rtems_id          id,
    105   rtems_task      (*entry_point)(int, char **),
    106   int               argc,
    107   char            **argv
    108 )
    109 {
    110   return rtems_task_start_support(
    111     id,
    112     (rtems_task_entry) entry_point,
    113     THREAD_START_BOTH_NUMERIC_FIRST,
    114     argc,
    115     argv
    116   );
    117 }
Note: See TracChangeset for help on using the changeset viewer.