Changeset 9700578 in rtems for c/src/lib/libbsp/powerpc
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c
rea74482 r9700578 150 150 { 151 151 int stdin_fd, stdout_fd, stderr_fd; 152 int error_code; 153 154 error_code = 'S' << 24 | 'T' << 16; 152 155 153 156 if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1) 154 rtems_fatal_error_occurred( 'STD0');157 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 155 158 156 159 if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1) 157 rtems_fatal_error_occurred( 'STD1');160 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 158 161 159 162 if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1) 160 rtems_fatal_error_occurred( 'STD2');163 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 161 164 162 165 if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2)) 163 rtems_fatal_error_occurred( 'STIO');166 rtems_fatal_error_occurred( error_code | 'I' << 8 | 'O' ); 164 167 } 165 168
Note: See TracChangeset
for help on using the changeset viewer.