| commit | b96f99301582fb159db774da4e6058aa6a5f098f | [log] [tgz] |
|---|---|---|
| author | chao an <anchao.archer@bytedance.com> | Tue Nov 11 18:31:37 2025 +0800 |
| committer | chao an <anchao.archer@bytedance.com> | Tue Nov 11 18:41:17 2025 +0800 |
| tree | 01d3fdbf1f64e4d757c6ceba0b26012854e15f8d | |
| parent | d94cb53d6cde6a999d862ae45e1fcd3692675cb4 [diff] |
sched/sched_lock: remove null pointer check of rtcb In previous commits to xiaomi, runtime null pointer checks for RTCB were removed. This could cause `sched_lock/unlock` exceptions when `DEBUG_ASSERTIONS` was disabled. In this commit, we removed all RTCB checks to improve performance by 1 comparison cycle References to null pointers in the RTCB will rely on hardware exception or MPU/MMU protection. | commit d94cb53d6cde6a999d862ae45e1fcd3692675cb4 (HEAD, origin/master, origin/HEAD) | Author: hujun5 <hujun5@xiaomi.com> | Date: Thu Feb 6 15:06:00 2025 +0800 | | sched_lock: remove the check for whether tcb is NULL | | Remove Redundant Checks | | Signed-off-by: hujun5 <hujun5@xiaomi.com> Signed-off-by: chao an <anchao.archer@bytedance.com>
Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).
For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.
First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.
You can find the current NuttX documentation on the Documentation Page.
Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.
The old NuttX documentation is still available in the Apache wiki.
NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.
If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.
The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.