Changeset 9700578 in rtems for c/src/lib/libbsp/i386


Ignore:
Timestamp:
Oct 30, 1995, 9:54:45 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c4808ca
Parents:
ea74482
Message:

SPARC port passes all tests

Location:
c/src/lib/libbsp/i386
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/force386/clock/ckinit.c

    rea74482 r9700578  
    7676}
    7777
    78 void ReInstall_clock(
    79   rtems_isr_entry clock_isr
    80 )
    81 {
    82   rtems_unsigned32 isrlevel = 0;
    83 
    84   rtems_interrupt_disable( isrlevel );
    85    (void) set_vector( clock_isr, CLOCK_VECTOR, 1 );
    86   rtems_interrupt_enable( isrlevel );
    87 }
    88 
    8978void Clock_exit( void )
    9079{
     
    120109)
    121110{
     111    rtems_unsigned32 isrlevel;
    122112    rtems_libio_ioctl_args_t *args = pargp;
    123113 
     
    136126    else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    137127    {
    138         ReInstall_clock(args->buffer);
     128      rtems_interrupt_disable( isrlevel );
     129       (void) set_vector( args->buffer, CLOCK_VECTOR, 1 );
     130      rtems_interrupt_enable( isrlevel );
    139131    }
    140132 
  • c/src/lib/libbsp/i386/force386/startup/bspstart.c

    rea74482 r9700578  
    123123{
    124124  int stdin_fd, stdout_fd, stderr_fd;
     125  int error_code;
     126 
     127  error_code = 'S' << 24 | 'T' << 16;
    125128 
    126129  if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
    127     rtems_fatal_error_occurred('STD0');
     130    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    128131 
    129132  if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    130     rtems_fatal_error_occurred('STD1');
     133    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    131134 
    132135  if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    133     rtems_fatal_error_occurred('STD2');
     136    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    134137 
    135138  if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2))
    136     rtems_fatal_error_occurred('STIO');
     139    rtems_fatal_error_occurred( error_code | 'I' << 8 | 'O' );
    137140}
    138141
  • c/src/lib/libbsp/i386/go32/clock/ckinit.c

    rea74482 r9700578  
    109109}
    110110
    111 void ReInstall_clock(
    112   rtems_isr_entry clock_isr
    113 )
    114 {
    115   rtems_unsigned32 isrlevel = 0;
    116 
    117   rtems_interrupt_disable( isrlevel );
    118    (void) set_vector( clock_isr, CLOCK_VECTOR, 1 );
    119   rtems_interrupt_enable( isrlevel );
    120 }
    121 
    122111void Clock_exit( void )
    123112{
     
    162151)
    163152{
     153    rtems_unsigned32 isrlevel;
    164154    rtems_libio_ioctl_args_t *args = pargp;
    165155 
     
    178168    else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    179169    {
    180         ReInstall_clock(args->buffer);
     170      rtems_interrupt_disable( isrlevel );
     171       (void) set_vector( args->buffer, CLOCK_VECTOR, 1 );
     172      rtems_interrupt_enable( isrlevel );
    181173    }
    182174 
  • c/src/lib/libbsp/i386/go32/startup/bspstart.c

    rea74482 r9700578  
    130130{
    131131  int stdin_fd, stdout_fd, stderr_fd;
     132  int error_code;
     133 
     134  error_code = 'S' << 24 | 'T' << 16;
    132135 
    133136  if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
    134     rtems_fatal_error_occurred('STD0');
     137    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    135138 
    136139  if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    137     rtems_fatal_error_occurred('STD1');
     140    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    138141 
    139142  if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    140     rtems_fatal_error_occurred('STD2');
     143    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    141144 
    142145  if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2))
    143     rtems_fatal_error_occurred('STIO');
     146    rtems_fatal_error_occurred( error_code | 'I' << 8 | 'O' );
    144147}
    145148
Note: See TracChangeset for help on using the changeset viewer.