Apache NuttX is a mature, real-time embedded operating system (RTOS)
Go to file
hujun5 3e459c0477 riscv: use g_running_task store current regs
This commit fixes the regression from https://github.com/apache/nuttx/pull/13561

In order to determine whether a context switch has occurred,
we can use g_running_task to store the current regs.
This allows us to compare the current register state with the previously
stored state to identify if a context switch has taken place.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-09-27 18:07:31 +08:00
.github build(deps): bump codelytv/pr-size-labeler from 1.10.0 to 1.10.1 2024-09-23 14:37:02 +08:00
Documentation syslog/channel: add constant attribute if SYSLOG_IOCTL is not enabled 2024-09-26 16:10:29 +08:00
arch riscv: use g_running_task store current regs 2024-09-27 18:07:31 +08:00
audio audio: Fix caps initialization in pcm_enqueuebuffer() 2024-09-26 13:57:53 +02:00
binfmt modify BUILD_LOADABLE to MODULES which backwards-compatible Kernel 2024-09-19 08:32:03 +08:00
boards boards/qemu-rv: Correct tmpfs mount path to use CONFIG_LIBC_TMPDIR 2024-09-27 13:35:00 +08:00
cmake cmake:refactor CMake add_romfs module to support ABS path 2024-09-27 09:55:50 +08:00
crypto greenhills: fix the arc4random_buf implicit declaration build error 2024-09-26 22:52:28 +08:00
drivers drivers/pci: one pci device should only associate with one driver 2024-09-27 17:12:09 +08:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fs smartfs: add support for FIOC_FILEPATH ioctl 2024-09-27 10:28:37 +08:00
graphics Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
include toolchain/ghs: Fix ?? "trigraphs not allowed" warnings 2024-09-27 17:12:09 +08:00
libs libcxx: Apply 0001_fix_stdatomic_h_miss_typedef.patch to libcxx.defs 2024-09-27 17:10:17 +08:00
mm mm/kasan: Kasan global support setting alignment length 2024-09-20 21:47:23 +08:00
net net/tcp: Fix TCP keepalive time unit misuse problem 2024-09-25 10:04:41 -03:00
openamp Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
pass1 Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
sched sched : add prompt for workerqueue 2024-09-26 22:53:13 +08:00
syscall fs/mmap/msync:support msync. 2024-09-19 01:43:50 +08:00
tools tools/btdecode.sh: make grep overridable 2024-09-26 23:59:50 +08:00
video Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
wireless Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
.asf.yaml feat: add a GitHub action to lint the YAML files 2020-12-15 09:52:04 -06:00
.gitignore add .gdb_history to .gitignore 2024-09-14 12:14:12 +08:00
.pre-commit-config.yaml Created pre-commit config file 2024-08-19 21:40:56 +02:00
.yamllint feat: add a GitHub action to lint the YAML files 2020-12-15 09:52:04 -06:00
AUTHORS AUTHORS: add Tomek CEDRO to the list 2023-03-07 14:15:55 +01:00
CMakeLists.txt CMake/preprocess: fix typo PREPROCES -> PREPROCESS 2024-09-25 11:55:06 +08:00
CONTRIBUTING.md Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
INVIOLABLES.md INVIOLABLES.md: Fix a simple alignment and change occurrences of Nuttx 2020-09-03 01:33:05 +08:00
Kconfig compile: add DEBUG_SYMBOLS_LEVEL allow custom the level 2024-09-27 00:13:07 +08:00
LICENSE drivers/i3c: support i3c driver model 2024-09-24 23:36:50 +08:00
Makefile tools: migrate to SPDX identifier 2024-09-10 23:11:11 +08:00
NOTICE Remove the double blank line from source files 2022-02-20 20:10:14 +01:00
README.md Gathering community recommendations 2023-10-28 13:55:56 +08:00
ReleaseNotes Documentation: move ReleaseNotes 2023-09-26 20:41:00 +08:00

README.md

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

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.

Getting Started

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.

Documentation

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.

Supported Boards

NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.

Contributing

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.

License

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.