From 1c98d28cb7d8f0f875ddb0ae8c7adec4fa00144b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 13 Dec 1999 20:35:09 +0000 Subject: Patch rtems-19991203.sh2.diff from John M. Mills 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. --- c/src/lib/libcpu/sh/sh7045/include/sci.h | 2 +- c/src/lib/libcpu/sh/sh7045/sci/sci.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libcpu/sh') diff --git a/c/src/lib/libcpu/sh/sh7045/include/sci.h b/c/src/lib/libcpu/sh/sh7045/include/sci.h index c18321899c..e9c133fd32 100644 --- a/c/src/lib/libcpu/sh/sh7045/include/sci.h +++ b/c/src/lib/libcpu/sh/sh7045/include/sci.h @@ -26,7 +26,7 @@ #define _sh_sci_h #ifdef __cplusplus -extern"C" { +extern "C" { #endif /* diff --git a/c/src/lib/libcpu/sh/sh7045/sci/sci.c b/c/src/lib/libcpu/sh/sh7045/sci/sci.c index 4a50abc803..8f7739275e 100644 --- a/c/src/lib/libcpu/sh/sh7045/sci/sci.c +++ b/c/src/lib/libcpu/sh/sh7045/sci/sci.c @@ -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 */ -- cgit v1.2.3