From 1c6926c11f2e5efcb166c668b097d64a0321d66e Mon Sep 17 00:00:00 2001 From: Kevin Kirspel Date: Tue, 21 Mar 2017 15:39:48 -0400 Subject: termios: Synchronize with latest FreeBSD headers Adding modified FreeBSD headers to synchronize RTEMS termios with FreeBSD. Modify termios to support dedicated input and output baud for termios structure. Updated BSPs to use dedicated input and output baud in termios structure. Updated tools to use dedicated input and output baud in termios structure. Updated termios testsuites to use dedicated input and output baud in termios structure. Close #2897. --- c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c') diff --git a/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c b/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c index d7fd8b4dc5..e015a6497b 100644 --- a/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c +++ b/c/src/lib/libcpu/powerpc/mpc8xx/console-generic/console-generic.c @@ -175,7 +175,7 @@ m8xx_smc_set_attributes (int minor, const struct termios *t) uint16_t clen=0, cstopb, parenb, parodd, cread; /* Baud rate */ - switch (t->c_cflag & CBAUD) { + switch (t->c_ospeed) { default: baud = -1; break; case B50: baud = 50; break; case B75: baud = 75; break; @@ -271,7 +271,7 @@ m8xx_scc_set_attributes (int minor, const struct termios *t) uint16_t csize=0, cstopb, parenb, parodd; /* Baud rate */ - switch (t->c_cflag & CBAUD) { + switch (t->c_ospeed) { default: baud = -1; break; case B50: baud = 50; break; case B75: baud = 75; break; -- cgit v1.2.3