Changeset af536c96 in rtems


Ignore:
Timestamp:
Sep 28, 2001, 11:14:58 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d805c496
Parents:
6a6cd55
Message:

2001-09-28 Joel Sherrill <joel@…>

  • shared/bootcard.c, shared/main.c: Now call int c_rtems_main() not main().
Location:
c/src/lib/libbsp
Files:
3 edited

Legend:

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

    r6a6cd55 raf536c96  
     12001-09-28      Joel Sherrill <joel@OARcorp.com>
     2
     3        * shared/bootcard.c, shared/main.c: Now call int c_rtems_main()
     4        not main().
     5
    162001-09-27      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • c/src/lib/libbsp/shared/bootcard.c

    r6a6cd55 raf536c96  
    4747 */
    4848
    49 int main(int argc, char **argv, char **envp);
     49int c_rtems_main(int argc, char **argv, char **envp);
    5050
    5151int boot_card(int argc, char **argv, char **envp)
     
    5858
    5959  /*
    60    *  Set things up so main is called with real pointers for argv and envp.
    61    *  If the BSP has passed us something useful, then pass it on.
     60   *  Set things up so c_rtems_main() is called with real pointers for
     61   *  argv and envp.  If the BSP has passed us something useful, then
     62   *  pass it on.  Somehow we need to eventually make this available to
     63   *  a real main() in user land. :)
    6264   */
    6365
     
    115117
    116118  /*
    117    *  Call main() and get the global constructors invoked if there
    118    *  are any.
     119   *  Call c_rtems_main() and eventually let the first task or the real
     120   *  main() invoke the global constructors if there are any.
    119121   */
     122
    120123#ifdef USE_INIT_FINI
    121124   atexit( _fini );
    122125#endif
    123126
    124   status = main( argc, argv_p, envp_p );
     127  status = c_rtems_main( argc, argv_p, envp_p );
    125128
    126129  /*
  • c/src/lib/libbsp/shared/main.c

    r6a6cd55 raf536c96  
    2323extern rtems_interrupt_level bsp_isr_level;
    2424
    25 int main(int argc, char **argv)
     25int c_rtems_main(int argc, char **argv)
    2626{
    2727  if ((argc > 0) && argv && argv[0])
Note: See TracChangeset for help on using the changeset viewer.