source: rtems/c/src/lib/libbsp/v850/shared/crt1.c @ 0f77281

4.115
Last change on this file since 0f77281 was 2d7ae960, checked in by Joel Sherrill <joel.sherrill@…>, on 06/11/12 at 18:37:29

v850 port: Initial addition with BSP for simulator in GDB

Port

+ v850 does not have appear to have any optimized bit scan instructions
+ v850 does have single instructions for wap u16 and u32
+ Code path optimization preferences set
+ Add BSP variants for each GCC CPU model flag and a README

  • v850e1 variant does not work (fails during BSP initialization)

BSP for GDB v850 Simulator

+ linkcmds matches defaults in GDB simulator with RTEMS mods
+ crt1.c added from v850 newlib port for main()
+ BSP exits cleanly
+ printk and console I/O work
+ uses clock tick from IDLE task
+ Tests not requiring real clock ISR work

Documentation

+ CPU Supplment chapter for v850 added

  • Property mode set to 100644
File size: 357 bytes
RevLine 
[2d7ae960]1/*
2 * From newlib ==> libc/sys/sysnecv850/crt1.c
3 *
4 * Obtained newlib 29 May 2012
5 */
6void __main ()
7{
8  static int initialized;
9  if (! initialized)
10    {
11      typedef void (*pfunc) ();
12      extern pfunc __ctors[];
13      extern pfunc __ctors_end[];
14      pfunc *p;
15
16      initialized = 1;
17      for (p = __ctors_end; p > __ctors; )
18        (*--p) ();
19
20    }
21}
Note: See TracBrowser for help on using the repository browser.