Changeset af043e13 in rtems


Ignore:
Timestamp:
Jan 22, 2008, 3:30:59 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
b89f64c
Parents:
14862663
Message:

2008-01-22 Joel Sherrill <joel.sherrill@…>

  • bootcard.c: Improve comments and clean up argc/argv order.
Location:
c/src/lib/libbsp/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/ChangeLog

    r14862663 raf043e13  
     12008-01-22      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * bootcard.c: Improve comments and clean up argc/argv order.
     4
    152007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/shared/bootcard.c

    r14862663 raf043e13  
    1717 *     + bspclean.c: bsp_cleanup
    1818 *
    19  *  This style of initialization insures that the C++ global
     19 *  This style of initialization ensures that the C++ global
    2020 *  constructors are executed after RTEMS is initialized.
     21 *  Thanks to Chris Johns <cjohns@plessey.com.au> for the idea
     22 *  to move C++ global constructors into the first task.
    2123 *
    22  *  Thanks to Chris Johns <cjohns@plessey.com.au> for this idea.
    23  *
    24  *  COPYRIGHT (c) 1989-2006.
     24 *  COPYRIGHT (c) 1989-2007.
    2525 *  On-Line Applications Research Corporation (OAR).
    2626 *
     
    7171
    7272  /*
     73   *  Set the program name in case some application cares.
     74   */
     75
     76  if ((argc > 0) && argv && argv[0])
     77    rtems_progname = argv[0];
     78  else
     79    rtems_progname = "RTEMS";
     80
     81  /*
    7382   * Invoke Board Support Package initialization routine written in C.
    7483   */
     
    8392
    8493  /*
    85    *  Call c_rtems_main() and eventually let the first task or the real
    86    *  main() invoke the global constructors if there are any.
     94   *  Complete initialization of RTEMS and switch to the first task.
     95   *  Global C++ constructors will be executed in the context of that task.
    8796   */
    88 
    89   if ((argc > 0) && argv && argv[0])
    90     rtems_progname = argv[0];
    91   else
    92     rtems_progname = "RTEMS";
    9397
    9498  rtems_initialize_executive_late( bsp_isr_level );
     
    102106
    103107  /*
    104    *  Perform any BSP specific shutdown actions.
     108   *  Perform any BSP specific shutdown actions which are written in C.
    105109   */
    106110
Note: See TracChangeset for help on using the changeset viewer.