Changeset 9700578 in rtems for c/src/lib/libbsp/m68k
- Timestamp:
- 10/30/95 21:54:45 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- c4808ca
- Parents:
- ea74482
- Location:
- c/src/lib/libbsp/m68k
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/dmv152/clock/ckinit.c
rea74482 r9700578 98 98 } 99 99 100 void ReInstall_clock(101 rtems_isr_entry clock_isr102 )103 {104 rtems_unsigned32 isrlevel = 0 ;105 106 rtems_interrupt_disable( isrlevel );107 (void) set_vector( clock_isr, CLOCK_VECTOR, 1 );108 rtems_interrupt_enable( isrlevel );109 }110 111 100 void Clock_exit( void ) 112 101 { … … 146 135 ) 147 136 { 137 rtems_unsigned32 isrlevel; 148 138 rtems_libio_ioctl_args_t *args = pargp; 149 139 … … 162 152 else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) 163 153 { 164 ReInstall_clock(args->buffer); 154 rtems_interrupt_disable( isrlevel ); 155 (void) set_vector( args->buffer, CLOCK_VECTOR, 1 ); 156 rtems_interrupt_enable( isrlevel ); 165 157 } 166 158 -
c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c
rea74482 r9700578 124 124 { 125 125 int stdin_fd, stdout_fd, stderr_fd; 126 int error_code; 127 128 error_code = 'S' << 24 | 'T' << 16; 126 129 127 130 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' ); 129 132 130 133 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' ); 132 135 133 136 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' ); 135 138 136 139 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' ); 138 141 } 139 142 -
c/src/lib/libbsp/m68k/efi332/clock/ckinit.c
rea74482 r9700578 71 71 } 72 72 73 void ReInstall_clock(74 rtems_isr_entry clock_isr75 )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 84 73 void Clock_exit( void ) 85 74 { … … 121 110 ) 122 111 { 112 rtems_unsigned32 isrlevel; 123 113 rtems_libio_ioctl_args_t *args = pargp; 124 114 … … 137 127 else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) 138 128 { 139 ReInstall_clock(args->buffer); 129 rtems_interrupt_disable( isrlevel ); 130 (void) set_vector( args->buffer, CLOCK_VECTOR, 1 ); 131 rtems_interrupt_enable( isrlevel ); 140 132 } 141 133 -
c/src/lib/libbsp/m68k/efi332/startup/bspstart.c
rea74482 r9700578 124 124 { 125 125 int stdin_fd, stdout_fd, stderr_fd; 126 int error_code; 127 128 error_code = 'S' << 24 | 'T' << 16; 126 129 127 130 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' ); 129 132 130 133 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' ); 132 135 133 136 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' ); 135 138 136 139 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' ); 138 141 } 139 142 -
c/src/lib/libbsp/m68k/efi68k/clock/ckinit.c
rea74482 r9700578 94 94 } 95 95 96 void ReInstall_clock(97 rtems_isr_entry clock_isr98 )99 {100 rtems_unsigned32 isrlevel = 0 ;101 102 rtems_interrupt_disable( isrlevel );103 (void) set_vector( clock_isr, CLOCK_VECTOR, 1 );104 rtems_interrupt_enable( isrlevel );105 }106 107 96 void Clock_exit( void ) 108 97 { … … 142 131 ) 143 132 { 133 rtems_unsigned32 isrlevel; 144 134 rtems_libio_ioctl_args_t *args = pargp; 145 135 … … 158 148 else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) 159 149 { 160 ReInstall_clock(args->buffer); 150 rtems_interrupt_disable( isrlevel ); 151 (void) set_vector( args->buffer, CLOCK_VECTOR, 1 ); 152 rtems_interrupt_enable( isrlevel ); 161 153 } 162 154 -
c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c
rea74482 r9700578 131 131 { 132 132 int stdin_fd, stdout_fd, stderr_fd; 133 int error_code; 134 135 error_code = 'S' << 24 | 'T' << 16; 133 136 134 137 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' ); 136 139 137 140 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' ); 139 142 140 143 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' ); 142 145 143 146 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' ); 145 148 } 146 149 -
c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c
rea74482 r9700578 90 90 91 91 if ( BSP_Configuration.ticks_per_timeslice ) { 92 /* set_vector( clock_isr, CLOCK_VECTOR, 1 );*/ 92 set_vector( clock_isr, CLOCK_VECTOR, 1 ); 93 93 94 94 m302.reg.trr1 = TRR1_VAL; /* set timer reference register */ … … 101 101 atexit( Clock_exit ); 102 102 } 103 }104 105 void ReInstall_clock(106 rtems_isr_entry clock_isr107 )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 );114 103 } 115 104 … … 146 135 ) 147 136 { 137 rtems_unsigned32 isrlevel; 148 138 rtems_libio_ioctl_args_t *args = pargp; 149 139 … … 162 152 else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) 163 153 { 164 ReInstall_clock(args->buffer); 154 rtems_interrupt_disable( isrlevel ); 155 (void) set_vector( args->buffer, CLOCK_VECTOR, 1 ); 156 rtems_interrupt_enable( isrlevel ); 165 157 } 166 158 -
c/src/lib/libbsp/m68k/gen68302/start/start302.s
rea74482 r9700578 194 194 | move.l #_cnsl_isr,vbase+0x028 | SCC2 195 195 move.l #timerisr,vbase+0x018 | Timer ISR 196 move.l #RTC_ISR,vbase+0x024 | Real Time Clock ISR197 196 198 197 | … … 237 236 238 237 nop 239 RTC_ISR:240 movem.l d0-d1/a0-a1,a7@- | save d0-d1,a0-a1241 addql #1,_ISR_Nest_level | one nest level deeper242 addql #1,_Thread_Dispatch_disable_level243 | disable multitasking244 245 jbsr Clock_isr | invoke the user ISR246 jmp _ISR_Exit247 238 END_CODE 248 239 -
c/src/lib/libbsp/m68k/gen68302/start302/start302.s
rea74482 r9700578 194 194 | move.l #_cnsl_isr,vbase+0x028 | SCC2 195 195 move.l #timerisr,vbase+0x018 | Timer ISR 196 move.l #RTC_ISR,vbase+0x024 | Real Time Clock ISR197 196 198 197 | … … 237 236 238 237 nop 239 RTC_ISR:240 movem.l d0-d1/a0-a1,a7@- | save d0-d1,a0-a1241 addql #1,_ISR_Nest_level | one nest level deeper242 addql #1,_Thread_Dispatch_disable_level243 | disable multitasking244 245 jbsr Clock_isr | invoke the user ISR246 jmp _ISR_Exit247 238 END_CODE 248 239 -
c/src/lib/libbsp/m68k/gen68302/startup/bspstart.c
rea74482 r9700578 131 131 { 132 132 int stdin_fd, stdout_fd, stderr_fd; 133 int error_code; 134 135 error_code = 'S' << 24 | 'T' << 16; 133 136 134 137 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' ); 136 139 137 140 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' ); 139 142 140 143 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' ); 142 145 143 146 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' ); 145 148 } 146 149 -
c/src/lib/libbsp/m68k/idp/clock/ckinit.c
rea74482 r9700578 131 131 } 132 132 133 void ReInstall_clock( clock_isr )134 rtems_isr_entry clock_isr;135 {136 rtems_unsigned32 isrlevel = 0 ;137 138 rtems_interrupt_disable( isrlevel );139 (void) set_vector( clock_isr, CLOCK_VECTOR, 1 );140 rtems_interrupt_enable( isrlevel );141 }142 143 133 /* The following was added for debugging purposes */ 144 134 void Clock_exit( void ) … … 182 172 ) 183 173 { 174 rtems_unsigned32 isrlevel; 184 175 rtems_libio_ioctl_args_t *args = pargp; 185 176 … … 198 189 else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) 199 190 { 200 ReInstall_clock(args->buffer); 191 rtems_interrupt_disable( isrlevel ); 192 (void) set_vector( args->buffer, CLOCK_VECTOR, 1 ); 193 rtems_interrupt_enable( isrlevel ); 201 194 } 202 195 -
c/src/lib/libbsp/m68k/idp/console/duart.c
rea74482 r9700578 1 # 2 #$Id$3 # 1 /* 2 * $Id$ 3 */ 4 4 5 5 /*######################################################### -
c/src/lib/libbsp/m68k/idp/startup/bspstart.c
rea74482 r9700578 132 132 { 133 133 int stdin_fd, stdout_fd, stderr_fd; 134 int error_code; 135 136 error_code = 'S' << 24 | 'T' << 16; 134 137 135 138 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' ); 137 140 138 141 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' ); 140 143 141 144 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' ); 143 146 144 147 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' ); 146 149 } 147 150 -
c/src/lib/libbsp/m68k/mvme136/clock/ckinit.c
rea74482 r9700578 109 109 } 110 110 111 void ReInstall_clock(112 rtems_isr_entry clock_isr113 )114 {115 rtems_unsigned32 isrlevel;116 117 rtems_interrupt_disable( isrlevel );118 (void) set_vector( clock_isr, CLOCK_VECTOR, 1 );119 rtems_interrupt_enable( isrlevel );120 }121 122 111 void Clock_exit( void ) 123 112 { … … 158 147 ) 159 148 { 149 rtems_unsigned32 isrlevel; 160 150 rtems_libio_ioctl_args_t *args = pargp; 161 151 … … 174 164 else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) 175 165 { 176 ReInstall_clock(args->buffer); 166 rtems_interrupt_disable( isrlevel ); 167 (void) set_vector( args->buffer, CLOCK_VECTOR, 1 ); 168 rtems_interrupt_enable( isrlevel ); 177 169 } 178 170 -
c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c
rea74482 r9700578 125 125 { 126 126 int stdin_fd, stdout_fd, stderr_fd; 127 127 int error_code; 128 129 error_code = 'S' << 24 | 'T' << 16; 130 128 131 if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1) 129 rtems_fatal_error_occurred( 'STD0');132 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 130 133 131 134 if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1) 132 rtems_fatal_error_occurred( 'STD1');135 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 133 136 134 137 if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1) 135 rtems_fatal_error_occurred( 'STD2');138 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 136 139 137 140 if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2)) 138 rtems_fatal_error_occurred( 'STIO');141 rtems_fatal_error_occurred( error_code | 'I' << 8 | 'O' ); 139 142 } 140 143 -
c/src/lib/libbsp/m68k/mvme162/clock/ckinit.c
rea74482 r9700578 90 90 } 91 91 92 void ReInstall_clock(rtems_isr_entry clock_isr)93 {94 rtems_unsigned32 isrlevel;95 96 rtems_interrupt_disable( isrlevel );97 (void) set_vector( clock_isr, CLOCK_VECTOR, 1 );98 rtems_interrupt_enable( isrlevel );99 }100 101 92 void Clock_exit( void ) 102 93 { … … 128 119 ) 129 120 { 121 rtems_unsigned32 isrlevel; 130 122 rtems_libio_ioctl_args_t *args = pargp; 131 123 … … 144 136 else if (args->command == rtems_build_name('N', 'E', 'W', ' ')) 145 137 { 146 ReInstall_clock(args->buffer); 138 rtems_interrupt_disable( isrlevel ); 139 (void) set_vector( args->buffer, CLOCK_VECTOR, 1 ); 140 rtems_interrupt_enable( isrlevel ); 147 141 } 148 142 -
c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c
rea74482 r9700578 131 131 { 132 132 int stdin_fd, stdout_fd, stderr_fd; 133 int error_code; 134 135 error_code = 'S' << 24 | 'T' << 16; 133 136 134 137 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' ); 136 139 137 140 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' ); 139 142 140 143 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' ); 142 145 143 146 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' ); 145 148 } 146 149
Note: See TracChangeset
for help on using the changeset viewer.