From 46d50409982d5d3aa25a98642251ffa82fcd3306 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 18 Apr 2012 19:17:30 +0000 Subject: More Kconfig files git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4632 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/drivers/serial/serial.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nuttx/drivers') 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; -- cgit v1.2.3