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


Ignore:
Timestamp:
10/30/95 21:54:45 (27 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/unix/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/unix/posix/clock/clock.c

    rea74482 r9700578  
    3232rtems_device_minor_number rtems_clock_minor;
    3333
    34 void
    35 Install_clock(rtems_isr_entry clock_isr)
     34void Install_clock(rtems_isr_entry clock_isr)
    3635{
    3736    Clock_driver_ticks = 0;
    3837
    39     (void)set_vector(clock_isr, Clock_driver_vector, 1);
     38    (void) set_vector( clock_isr, Clock_driver_vector, 1 );
    4039
    4140    _CPU_Start_clock( BSP_Configuration.microseconds_per_tick );
     
    4443}
    4544
    46 void
    47 ReInstall_clock(rtems_isr_entry new_clock_isr)
    48 {
    49     rtems_unsigned32  isrlevel = 0;
    50 
    51     rtems_interrupt_disable(isrlevel);
    52     (void)set_vector(new_clock_isr, Clock_driver_vector, 1);
    53     rtems_interrupt_enable(isrlevel);
    54 }
    55 
    56 void
    57 Clock_isr(int vector)
     45void Clock_isr(int vector)
    5846{
    5947    Clock_driver_ticks++;
     
    6654 */
    6755
    68 void
    69 Clock_exit(void)
     56void Clock_exit(void)
    7057{
    7158  _CPU_Stop_clock();
    7259
    73   (void)set_vector(0, Clock_driver_vector, 1);
     60  (void) set_vector( 0, Clock_driver_vector, 1 );
    7461}
    7562
    76 rtems_device_driver
    77 Clock_initialize(
     63rtems_device_driver Clock_initialize(
    7864  rtems_device_major_number major,
    7965  rtems_device_minor_number minor,
     
    10086)
    10187{
     88    rtems_unsigned32 isrlevel;
    10289    rtems_libio_ioctl_args_t *args = pargp;
    10390
     
    116103    else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    117104    {
    118         ReInstall_clock(args->buffer);
     105      rtems_interrupt_disable( isrlevel );
     106       (void) set_vector( args->buffer, Clock_driver_vector, 1 );
     107      rtems_interrupt_enable( isrlevel );
    119108    }
    120109   
  • c/src/lib/libbsp/unix/posix/startup/bspstart.c

    rea74482 r9700578  
    183183#if 0
    184184  int stdin_fd, stdout_fd, stderr_fd;
     185  int error_code;
     186 
     187  error_code = 'S' << 24 | 'T' << 16;
    185188 
    186189  if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
    187     rtems_fatal_error_occurred('STD0');
     190    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    188191 
    189192  if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    190     rtems_fatal_error_occurred('STD1');
     193    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    191194 
    192195  if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    193     rtems_fatal_error_occurred('STD2');
     196    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    194197 
    195198  if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2))
    196     rtems_fatal_error_occurred('STIO');
     199    rtems_fatal_error_occurred( error_code | 'I' << 8 | 'O' );
    197200#endif
    198201
Note: See TracChangeset for help on using the changeset viewer.