diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-07-03 20:48:00 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-07-03 20:48:00 +0000 |
commit | e734e5763532907e06b84e2aee3713684719f4af (patch) | |
tree | 0416d3a838498ba78c6f2f1304ad22972b7de87c /c | |
parent | Interrupt stack is allocated in _ISR_Handler_initialization not (diff) | |
download | rtems-e734e5763532907e06b84e2aee3713684719f4af.tar.bz2 |
Patch rtems-rc-20000702-1.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that is a hack to workaround a switch generation compiler bug for the
SH2 and cleaned up some warnings.
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: c/src/tests/libtests/termios/init.c
CVS: ----------------------------------------------------------------------
Diffstat (limited to 'c')
-rw-r--r-- | c/src/tests/libtests/termios/init.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/c/src/tests/libtests/termios/init.c b/c/src/tests/libtests/termios/init.c index bc4097a8cc..5a239732ad 100644 --- a/c/src/tests/libtests/termios/init.c +++ b/c/src/tests/libtests/termios/init.c @@ -235,11 +235,15 @@ void print_c_lflag( struct termios * tp ) void print_c_cflag( struct termios * tp ) { - int baud; + unsigned int baud; printf( "c_cflag = 0x%08x\n", tp->c_cflag ); - - switch( baud = (tp->c_cflag & CBAUD) ) { + + baud = (tp->c_cflag & CBAUD) ; +#if defined(__sh2__) + if ( tp->c_cflag & CBAUDEX ) +#endif + switch( baud ) { case B0: printf( "\tCBAUD =\tB0\n" ); break; @@ -303,7 +307,12 @@ void print_c_cflag( struct termios * tp ) case B38400: printf( "\tCBAUD =\tB38400\n" ); break; - +#if defined(__sh2__) + } + else + switch ( baud ) + { +#endif case B57600: printf( "\tCBAUD =\tB57600\n" ); break; |