Changeset 9700578 in rtems for c/src/lib/libbsp/no_cpu/no_bsp


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/no_cpu/no_bsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c

    rea74482 r9700578  
    106106
    107107  if ( BSP_Configuration.ticks_per_timeslice ) {
    108     Old_ticker = ( rtems_isr_entry ) set_vector( clock_isr, CLOCK_VECTOR, 1 );
     108    Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );
    109109    /*
    110110     *  Hardware specific initialize goes here
     
    119119
    120120  atexit( Clock_exit );
    121 }
    122 
    123 /*
    124  *  Reinstall_clock
    125  *
    126  *  Install a clock tick handler without reprogramming the chip.  This
    127  *  is used by the polling shared memory device driver.
    128  */
    129 
    130 void ReInstall_clock(
    131   rtems_isr_entry clock_isr
    132 )
    133 {
    134   rtems_unsigned32 isrlevel = 0;
    135 
    136   /*
    137    *  Disable interrupts and install the clock ISR vector using the
    138    *  BSP dependent set_vector routine.  In the below example, the clock
    139    *  ISR is on vector 4 and is an RTEMS interrupt.
    140    */
    141 
    142   rtems_interrupt_disable( isrlevel );
    143    (void) set_vector( clock_isr, CLOCK_VECTOR, 1 );
    144   rtems_interrupt_enable( isrlevel );
    145121}
    146122
     
    189165)
    190166{
     167    rtems_unsigned32 isrlevel;
    191168    rtems_libio_ioctl_args_t *args = pargp;
    192169 
     
    205182    else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    206183    {
    207         ReInstall_clock(args->buffer);
     184      rtems_interrupt_disable( isrlevel );
     185       (void) set_vector( args->buffer, CLOCK_VECTOR, 1 );
     186      rtems_interrupt_enable( isrlevel );
    208187    }
    209188 
  • c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c

    rea74482 r9700578  
    132132{
    133133  int stdin_fd, stdout_fd, stderr_fd;
     134  int error_code;
     135 
     136  error_code = 'S' << 24 | 'T' << 16;
    134137 
    135138  if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
    136     rtems_fatal_error_occurred('STD0');
     139    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    137140 
    138141  if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    139     rtems_fatal_error_occurred('STD1');
     142    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    140143 
    141144  if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    142     rtems_fatal_error_occurred('STD2');
     145    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    143146 
    144147  if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2))
    145     rtems_fatal_error_occurred('STIO');
     148    rtems_fatal_error_occurred( error_code | 'I' << 8 | 'O' );
    146149}
    147150
Note: See TracChangeset for help on using the changeset viewer.