diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-18 19:17:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-18 19:17:30 +0000 |
commit | 46d50409982d5d3aa25a98642251ffa82fcd3306 (patch) | |
tree | 0eb5285e2797c9d336403f918c27305ebc8bf43e /nuttx/drivers/serial | |
parent | e39cf9e26bd07bcb73d475fa92b5f1d3d1a13cf0 (diff) | |
download | px4-nuttx-46d50409982d5d3aa25a98642251ffa82fcd3306.tar.gz px4-nuttx-46d50409982d5d3aa25a98642251ffa82fcd3306.tar.bz2 px4-nuttx-46d50409982d5d3aa25a98642251ffa82fcd3306.zip |
More Kconfig files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4632 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/serial')
-rw-r--r-- | nuttx/drivers/serial/serial.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/drivers/serial/serial.c b/nuttx/drivers/serial/serial.c index c43060b2b..f2f1e4b99 100644 --- a/nuttx/drivers/serial/serial.c +++ b/nuttx/drivers/serial/serial.c @@ -329,6 +329,10 @@ static ssize_t uart_read(FAR struct file *filep, FAR char *buffer, size_t buflen * the head index but must not modify the tail index. The tail * index is only modified in this function. Therefore, no * special handshaking is required here. + * + * The head and tail pointers are 16-bit values. The only time that + * the following could be unsafe is if the CPU made two non-atomic + * 8-bit accesses to obtain the 16-bit head index. */ tail = dev->recv.tail; |