Changeset 9700578 in rtems for c/src/lib/libbsp/m68k/efi332


Ignore:
Timestamp:
Oct 30, 1995, 9:54:45 PM (26 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/m68k/efi332
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/efi332/clock/ckinit.c

    rea74482 r9700578  
    7171}
    7272
    73 void ReInstall_clock(
    74   rtems_isr_entry clock_isr
    75 )
    76 {
    77   rtems_unsigned32 isrlevel = 0 ;
    78 
    79   rtems_interrupt_disable( isrlevel );
    80    (void) set_vector( clock_isr, CLOCK_VECTOR, 1 );
    81   rtems_interrupt_enable( isrlevel );
    82 }
    83 
    8473void Clock_exit( void )
    8574{
     
    121110)
    122111{
     112    rtems_unsigned32 isrlevel;
    123113    rtems_libio_ioctl_args_t *args = pargp;
    124114 
     
    137127    else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    138128    {
    139         ReInstall_clock(args->buffer);
     129      rtems_interrupt_disable( isrlevel );
     130       (void) set_vector( args->buffer, CLOCK_VECTOR, 1 );
     131      rtems_interrupt_enable( isrlevel );
    140132    }
    141133 
  • c/src/lib/libbsp/m68k/efi332/startup/bspstart.c

    rea74482 r9700578  
    124124{
    125125  int stdin_fd, stdout_fd, stderr_fd;
     126  int error_code;
     127 
     128  error_code = 'S' << 24 | 'T' << 16;
    126129 
    127130  if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
    128     rtems_fatal_error_occurred('STD0');
     131    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    129132 
    130133  if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    131     rtems_fatal_error_occurred('STD1');
     134    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    132135 
    133136  if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    134     rtems_fatal_error_occurred('STD2');
     137    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    135138 
    136139  if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2))
    137     rtems_fatal_error_occurred('STIO');
     140    rtems_fatal_error_occurred( error_code | 'I' << 8 | 'O' );
    138141}
    139142 
Note: See TracChangeset for help on using the changeset viewer.