diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-30 17:45:42 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-30 17:45:42 -0600 |
commit | e658bc1dda6cb05734fe4382878ba3f7bd4dcae4 (patch) | |
tree | 6efc14c09c8947d5cd5a98bad03f8bb1916da7b9 /nuttx | |
parent | 2f34044505daa870a2d56ed466cdb94200641a97 (diff) | |
download | px4-nuttx-e658bc1dda6cb05734fe4382878ba3f7bd4dcae4.tar.gz px4-nuttx-e658bc1dda6cb05734fe4382878ba3f7bd4dcae4.tar.bz2 px4-nuttx-e658bc1dda6cb05734fe4382878ba3f7bd4dcae4.zip |
Update some comments
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/arch/sim/src/up_simuart.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/arch/sim/src/up_simuart.c b/nuttx/arch/sim/src/up_simuart.c index 7d48d3987..cd14700d4 100644 --- a/nuttx/arch/sim/src/up_simuart.c +++ b/nuttx/arch/sim/src/up_simuart.c @@ -150,6 +150,14 @@ static void *simuart_thread(void *arg) } } + /* REVISIT: This is very weird and scary here. When sched_unlock() + * is called, we may do a lonjmp() style context switch meaning + * that the logic will be run running on this thread! (but with a + * different stack). So we do not get back here until the task + * sleeps again. I can't help but believe that that is going to + * be a problem someday. + */ + sched_unlock(); } } |