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


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/gen68302
Files:
4 edited

Legend:

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

    rea74482 r9700578  
    9090
    9191  if ( BSP_Configuration.ticks_per_timeslice ) {
    92 /*  set_vector( clock_isr, CLOCK_VECTOR, 1 );*/
     92   set_vector( clock_isr, CLOCK_VECTOR, 1 );
    9393
    9494    m302.reg.trr1 = TRR1_VAL;           /* set timer reference register */
     
    101101    atexit( Clock_exit );
    102102  }
    103 }
    104 
    105 void ReInstall_clock(
    106   rtems_isr_entry clock_isr
    107 )
    108 {
    109   rtems_unsigned32 isrlevel;
    110  
    111   rtems_interrupt_disable( isrlevel );
    112    /* (void) set_vector( clock_isr, CLOCK_VECTOR, 1 ); */
    113   rtems_interrupt_enable( isrlevel );
    114103}
    115104
     
    146135)
    147136{
     137    rtems_unsigned32 isrlevel;
    148138    rtems_libio_ioctl_args_t *args = pargp;
    149139 
     
    162152    else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    163153    {
    164         ReInstall_clock(args->buffer);
     154      rtems_interrupt_disable( isrlevel );
     155       (void) set_vector( args->buffer, CLOCK_VECTOR, 1 );
     156      rtems_interrupt_enable( isrlevel );
    165157    }
    166158 
  • c/src/lib/libbsp/m68k/gen68302/start/start302.s

    rea74482 r9700578  
    194194|               move.l  #_cnsl_isr,vbase+0x028  | SCC2
    195195                move.l  #timerisr,vbase+0x018   | Timer ISR
    196                 move.l  #RTC_ISR,vbase+0x024    | Real Time Clock ISR
    197196
    198197        |
     
    237236
    238237        nop
    239 RTC_ISR:
    240         movem.l  d0-d1/a0-a1,a7@-    | save d0-d1,a0-a1
    241         addql   #1,_ISR_Nest_level       | one nest level deeper
    242         addql   #1,_Thread_Dispatch_disable_level
    243                                          | disable multitasking
    244 
    245         jbsr    Clock_isr               | invoke the user ISR
    246         jmp     _ISR_Exit
    247238END_CODE
    248239
  • c/src/lib/libbsp/m68k/gen68302/start302/start302.s

    rea74482 r9700578  
    194194|               move.l  #_cnsl_isr,vbase+0x028  | SCC2
    195195                move.l  #timerisr,vbase+0x018   | Timer ISR
    196                 move.l  #RTC_ISR,vbase+0x024    | Real Time Clock ISR
    197196
    198197        |
     
    237236
    238237        nop
    239 RTC_ISR:
    240         movem.l  d0-d1/a0-a1,a7@-    | save d0-d1,a0-a1
    241         addql   #1,_ISR_Nest_level       | one nest level deeper
    242         addql   #1,_Thread_Dispatch_disable_level
    243                                          | disable multitasking
    244 
    245         jbsr    Clock_isr               | invoke the user ISR
    246         jmp     _ISR_Exit
    247238END_CODE
    248239
  • c/src/lib/libbsp/m68k/gen68302/startup/bspstart.c

    rea74482 r9700578  
    131131{
    132132  int stdin_fd, stdout_fd, stderr_fd;
     133  int error_code;
     134 
     135  error_code = 'S' << 24 | 'T' << 16;
    133136 
    134137  if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
    135     rtems_fatal_error_occurred('STD0');
     138    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    136139 
    137140  if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    138     rtems_fatal_error_occurred('STD1');
     141    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    139142 
    140143  if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
    141     rtems_fatal_error_occurred('STD2');
     144    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    142145 
    143146  if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2))
    144     rtems_fatal_error_occurred('STIO');
     147    rtems_fatal_error_occurred( error_code | 'I' << 8 | 'O' );
    145148}
    146149
Note: See TracChangeset for help on using the changeset viewer.