Changeset 9700578 in rtems for c/src/lib/libbsp/hppa1.1


Ignore:
Timestamp:
10/30/95 21:54:45 (28 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/hppa1.1/simhppa/startup/bspstart.c

    rea74482 r9700578  
    3030#include <bsp.h>
    3131#include <rtems/libio.h>
    32 #include <rtems/score/intthrd.h>
     32#include <rtems/intthrd.h>
    3333
    3434#include <libcsupport.h>
     
    244244bsp_postdriver_hook(void)
    245245{
    246     int stdin_fd, stdout_fd, stderr_fd;
    247    
    248     if ((stdin_fd = __open("/dev/tty00", O_RDONLY, 0)) == -1)
    249         rtems_fatal_error_occurred('STD0');
    250 
    251     if ((stdout_fd = __open("/dev/tty00", O_WRONLY, 0)) == -1)
    252         rtems_fatal_error_occurred('STD1');
    253 
    254     if ((stderr_fd = __open("/dev/tty00", O_WRONLY, 0)) == -1)
    255         rtems_fatal_error_occurred('STD2');
    256 
    257     if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2))
    258         rtems_fatal_error_occurred('STIO');
     246  int stdin_fd, stdout_fd, stderr_fd;
     247  int error_code;
     248 
     249  error_code = 'S' << 24 | 'T' << 16;
     250 
     251  if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     252    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
     253 
     254  if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     255    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
     256 
     257  if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     258    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
     259 
     260  if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2))
     261    rtems_fatal_error_occurred( error_code | 'I' << 8 | 'O' );
    259262}
    260263
Note: See TracChangeset for help on using the changeset viewer.