forked from Imagelibrary/rtems
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:
@@ -26,7 +26,7 @@
|
|||||||
#define _sh_sci_h
|
#define _sh_sci_h
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern"C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ struct scidev_t {
|
|||||||
} sci_device[2] =
|
} sci_device[2] =
|
||||||
{
|
{
|
||||||
{ "/dev/sci0", 0, 0, B9600 | CS8 },
|
{ "/dev/sci0", 0, 0, B9600 | CS8 },
|
||||||
{ "/dev/sci1", 0, 0, B9600 | CS8 }
|
{ "/dev/sci1", 1, 0, B9600 | CS8 }
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
/* local data structures maintain hardware configuration */
|
/* local data structures maintain hardware configuration */
|
||||||
|
|||||||
Reference in New Issue
Block a user