Changeset 634e746 in rtems for c/src/lib/libbsp/powerpc/papyrus


Ignore:
Timestamp:
01/29/97 00:28:47 (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
dcec5a4
Parents:
2f93371
Message:

All RTEMS system call implementation renamed to be rtems_*.

Location:
c/src/lib/libbsp/powerpc/papyrus/startup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c

    r2f93371 r634e746  
    8787    /*
    8888     *  Init the RTEMS libio facility to provide UNIX-like system
    89      *  calls for use by newlib (ie: provide __open, __close, etc)
     89     *  calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc)
    9090     *  Uses malloc() to get area for the iops, so must be after malloc init
    9191     */
     
    154154  error_code = 'S' << 24 | 'T' << 16;
    155155 
    156   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     156  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    157157    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    158158 
    159   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     159  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    160160    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    161161 
    162   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     162  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    163163    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    164164 
  • c/src/lib/libbsp/powerpc/papyrus/startup/linkcmds

    r2f93371 r634e746  
    2222/* Do we need any of these for elf?
    2323   __DYNAMIC = 0;    */
     24
     25/* What are these for? */
     26
     27__EXCEPT_START__ = 0;
     28__EXCEPT_END__ = 0;
     29__SDATA2_START__ = 0;
     30__SDATA2_END__ = 0;
     31__SBSS2_START__ = 0;
     32__SBSS2_END__ = 0;
     33__FIXUP_START__ = 0;
     34__FIXUP_END__ = 0;
     35__GOT2_START__ = 0;
     36__GOT2_END__ = 0;
     37__SDATA_START__ = 0;
     38__SDATA_END__ = 0;
     39
     40
    2441SECTIONS
    2542{
     
    3855     *(.descriptors)
    3956     *(rom_ver)
     57     etext = ALIGN(0x10);
     58     _etext = .;
     59     __CTOR_LIST__ = .;
     60     LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
     61     *(.ctors)
     62     LONG(0)
     63     __CTOR_END__ = .;
     64     __DTOR_LIST__ = .;
     65     LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
     66     *(.dtors)
     67     LONG(0)
     68     __DTOR_END__ = .;
     69     *(.lit)
     70     *(.shdata)
     71     *(.init)
     72     *(.fini)
     73     _endtext = .;
    4074  } > RAM
    4175 
     
    4781  } > RAM
    4882 
     83  __GOT_START__ = .;
    4984  .got :
    5085  {
     
    5287     *(.got.plt) *(.got)
    5388  } > RAM
     89  __GOT_END__ = .;
    5490 
     91  __SBSS_START__ = .;
    5592  .bss :
    5693  {
     
    5996    bss.end = ALIGN(4);
    6097  } > RAM
     98  __SBSS_END__ = .;
    6199 
    62100  bss.size = bss.end - bss.start;
Note: See TracChangeset for help on using the changeset viewer.