summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/arch/sim/src/up_simuart.c8
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();
}
}