You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/03/19 02:10:41 UTC
[06/13] incubator-mynewt-core git commit: Remove sanity assertion
from os_arch_idle().
Remove sanity assertion from os_arch_idle().
The assertion is correct and does not fire when the program is running
normally however it triggers a false positive when a breakpoint is set
in 'os_arch_idle()' by lldb.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/70073b52
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/70073b52
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/70073b52
Branch: refs/heads/master
Commit: 70073b52ab72de8df6e350453406e1ddd749b1cc
Parents: 473f5a8
Author: Neel Natu <ne...@nahannisys.com>
Authored: Fri Mar 11 16:26:15 2016 -0800
Committer: Neel Natu <ne...@nahannisys.com>
Committed: Fri Mar 11 16:26:15 2016 -0800
----------------------------------------------------------------------
libs/os/src/arch/sim/os_arch_sim.c | 2 --
1 file changed, 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/70073b52/libs/os/src/arch/sim/os_arch_sim.c
----------------------------------------------------------------------
diff --git a/libs/os/src/arch/sim/os_arch_sim.c b/libs/os/src/arch/sim/os_arch_sim.c
index 94182a8..d8c1b83 100644
--- a/libs/os/src/arch/sim/os_arch_sim.c
+++ b/libs/os/src/arch/sim/os_arch_sim.c
@@ -181,8 +181,6 @@ os_arch_in_critical(void)
void
os_arch_idle(void)
{
- assert(!os_arch_in_critical());
-
sigsuspend(&nosigs); /* Wait for a signal to wake us up */
}