aboutsummaryrefslogtreecommitdiff
path: root/nuttx/drivers/serial
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-04-18 19:17:30 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-04-18 19:17:30 +0000
commit42c322f824ee0d64e8d66f5cc9cfb4e984bee1e4 (patch)
tree0eb5285e2797c9d336403f918c27305ebc8bf43e /nuttx/drivers/serial
parent530040b164b352fcee157f317b2ac7e1609d5956 (diff)
downloadpx4-firmware-42c322f824ee0d64e8d66f5cc9cfb4e984bee1e4.tar.gz
px4-firmware-42c322f824ee0d64e8d66f5cc9cfb4e984bee1e4.tar.bz2
px4-firmware-42c322f824ee0d64e8d66f5cc9cfb4e984bee1e4.zip
More Kconfig files
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4632 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/drivers/serial')
-rw-r--r--nuttx/drivers/serial/serial.c4
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;