walnux/libs
Tiago Medicci Serrano 40c6af6dec Revert "libs/libc/semaphore: Fix DEBUGASSERTS"
This reverts commit 300992203a to
fix a problem with `esp32-devkitc:blewifi`, which fails to boot up
if `CONFIG_DEBUG_ASSERTIONS=y`.

Introduced by https://github.com/apache/nuttx/pull/16176 with the
following description:

> The DEBUGASSERTS in nxsem_wait and nxsem_trywait are
non-functional, they don't check anything. These were broken in
previous commits.

The above statements are not valid. Originally, there was no
problem calling `nxsem_trywait` from the interrupt and the
`DEBUGASSERT` simply checked a corner case: if ran from the
interrupt context, the current (interrupted) task may be the idle
task. This case is allowed only if called from an interrupt and
that's what the original commit checks with:

```
  DEBUGASSERT(!OSINIT_IDLELOOP() || !sched_idletask() ||
              up_interrupt_context());
```
2025-04-16 10:10:56 +08:00
..
libbuiltin macro/align: Use ALIGN_UP and ALIGN_DOWN uniformly 2025-01-12 16:48:35 +08:00
libc Revert "libs/libc/semaphore: Fix DEBUGASSERTS" 2025-04-16 10:10:56 +08:00
libdsp libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
libm libm/newlib: Add arch-specific source code first to CSRCS 2024-12-04 02:10:41 +08:00
libnx libs/libnx: do not generate resource if CONFIG_NX is not enabled 2025-02-20 08:45:05 +01:00
libxx [nxstyle] fix Relative files path 2025-02-21 15:36:05 +01:00
CMakeLists.txt libs: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00