Patch rtems-19991203.sh2.diff from John M. Mills <jmills@tga.com> which

fixes some problems:

    I found the problem which prevented opening 'dev/sci1' (the default
    console) with the 'gensh2' (sh7045) BSP. Both SCI ports were being
    initialized against the same minor device number: '0'. When I tried to
    open minor-device '1', it naturally crashed. Fixing that one value in the
    'sci_device[]' array solved the problem and allowed 'hello.exe' to run.
This commit is contained in:
Joel Sherrill
1999-12-13 20:35:09 +00:00
parent 1d5039fe81
commit 1c98d28cb7
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@
#define _sh_sci_h
#ifdef __cplusplus
extern"C" {
extern "C" {
#endif
/*

View File

@@ -61,7 +61,7 @@ struct scidev_t {
} sci_device[2] =
{
{ "/dev/sci0", 0, 0, B9600 | CS8 },
{ "/dev/sci1", 0, 0, B9600 | CS8 }
{ "/dev/sci1", 1, 0, B9600 | CS8 }
} ;
/* local data structures maintain hardware configuration */