summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/sh/sh7045
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-12-13 20:35:09 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-12-13 20:35:09 +0000
commit1c98d28cb7d8f0f875ddb0ae8c7adec4fa00144b (patch)
tree7d3ddaaa18e8e88359a48ac1f784118c60a1c52e /c/src/lib/libcpu/sh/sh7045
parent1d5039fe8185deac97eb321211a68e3317fce75b (diff)
downloadrtems-1c98d28cb7d8f0f875ddb0ae8c7adec4fa00144b.tar.bz2
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.
Diffstat (limited to 'c/src/lib/libcpu/sh/sh7045')
-rw-r--r--c/src/lib/libcpu/sh/sh7045/include/sci.h2
-rw-r--r--c/src/lib/libcpu/sh/sh7045/sci/sci.c2
2 files changed, 2 insertions, 2 deletions
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 */