Changeset fed92f5f in rtems


Ignore:
Timestamp:
Jun 10, 2013, 12:36:44 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
65483f8
Parents:
7338299c
git-author:
Sebastian Huber <sebastian.huber@…> (06/10/13 12:36:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/12/13 14:11:25)
Message:

termios: Notify driver about inactive transmit

Returning this state in the return value leads to race conditions on
SMP. The inactive state notification must be inside the critical
section.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/termios.c

    r7338299c rfed92f5f  
    13331333    }
    13341334
     1335    (*tty->device.write) (tty->minor, NULL, 0);
    13351336    nToSend = 0;
    13361337  } else {
     
    13521353       */
    13531354      tty->rawOutBufState = rob_idle;
     1355      (*tty->device.write) (tty->minor, NULL, 0);
    13541356      nToSend = 0;
    13551357
     
    13681370      tty->flow_ctrl |= FL_OSTOP;
    13691371      tty->rawOutBufState = rob_busy; /*apm*/
     1372      (*tty->device.write) (tty->minor, NULL, 0);
    13701373      nToSend = 0;
    13711374    } else {
  • doc/bsp_howto/console.t

    r7338299c rfed92f5f  
    409409     */
    410410
     411    /*
     412     * Termios will set n to zero to indicate that the transmitter is
     413     * now inactive.  The output buffer is empty in this case.  The
     414     * driver may disable the transmit interrupts now.
     415     */
     416
    411417    return 0;
    412418@}
Note: See TracChangeset for help on using the changeset viewer.