No description
Find a file
George Poulios a2a689fee0 drivers/misc/optee: Fix GP API compatibility
Previous implementation was not compatible with GlobalPlatform
API in the following ways:
 - Registered mem IDs would begin from negatives when it should
   have been greater than or equal to 0
 - Register IOCTL would return 0 on success, when it should have
   been returning a file descriptor.
 - Register IOCTL would expect the user-space client to specify
   TEE_SHM_* flags dictating its behaviour when in fact, libteec
   never specifies flags.

This commit fixes all those issues. It uses nuttx/idr.h instead
of a linked list, and it uses `file_allocate` to provide file
descriptors for registered shared memory. Upon close(fd), the
memory is de-registered and freed accordingly. It also updates
the documentation accordingly.

Signed-off-by: George Poulios <gpoulios@census-labs.com>
2025-05-13 10:14:01 +08:00
.github ci: enable spelling checks (via codespell) 2025-05-05 12:34:39 +08:00
arch armv7a/mmu: update from l1entry replace to TTBR0 update 2025-05-12 15:01:37 +08:00
audio audio/composite: merge composite instance allocate to one times 2025-03-17 10:26:54 +01:00
binfmt libc/elf: rename modlib to libelf 2025-04-11 09:43:22 +08:00
boards boards/xtensa: Add SDM peripheral board layer support for esp[-|-s2|-s3] 2025-05-09 19:20:47 +08:00
cmake tools: Update Unix.mk and savedefconfig.cmake for CONFIG_ARCH_BOARD_COMMON 2025-05-02 09:30:34 -03:00
crypto crypto/xform.c: migrate to SPDX identifier 2024-12-19 14:48:18 +08:00
Documentation drivers/misc/optee: Fix GP API compatibility 2025-05-13 10:14:01 +08:00
drivers drivers/misc/optee: Fix GP API compatibility 2025-05-13 10:14:01 +08:00
dummy
fs fs/procfs: Improve subdirectory recognition 2025-05-02 09:28:06 -03:00
graphics comments: update text typo pre-empted to preempted 2025-05-12 15:01:37 +08:00
include drivers/misc/optee: Fix GP API compatibility 2025-05-13 10:14:01 +08:00
libs sched: Correct word spelling mistakes. 2025-05-12 19:56:29 +08:00
mm mm/gran: add gran_alloc_align API 2025-05-12 15:01:37 +08:00
net net/tcp/tcp_conn.c: optimize the port conflict detection rules 2025-04-24 14:10:27 +08:00
openamp Remove all jira and changeid information from the kernel 2024-11-06 02:04:03 +08:00
pass1 Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
sched clock: Add clock_delay2abstick. 2025-05-12 19:56:29 +08:00
syscall sched/gettid: Move thread ID to TLS 2025-04-08 22:53:10 +08:00
tools tools: add permitted mixed case suffixes to nxstyle 2025-05-08 15:58:18 +08:00
video Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
wireless wireless/ieee802154: Replace direct access to semaphore value with nxsem_get_value 2025-04-17 20:13:40 +08:00
.asf.yaml github: master branch protection tune. 2025-05-07 18:37:13 -05:00
.codespell-ignore-lines style: add codespell configuration for common spelling exceptions 2025-05-05 12:34:39 +08:00
.codespellrc style: fix typos required by ci-cd 2025-05-09 19:21:17 +08:00
.gitignore gitignore: add Emacs auto-save files 2025-01-15 16:10:22 +08:00
.pre-commit-config.yaml pre-commit: enable codespell checks 2025-05-05 12:34:39 +08:00
.yamllint
AUTHORS AUTHORS: add Yamamoto Takashi 2024-11-04 22:29:22 +08:00
CMakeLists.txt Documentation: fix typo in comments 2025-04-11 22:31:30 +08:00
CONTRIBUTING.md 202503 Apache NuttX RTOS Contributing Guidelines update. 2025-03-17 08:30:37 -03:00
INVIOLABLES.md
Kconfig libc/elf: rename modlib to libelf 2025-04-11 09:43:22 +08:00
LICENSE libc string:Separate code. 2024-10-23 09:49:19 +08:00
Makefile tools: migrate to SPDX identifier 2024-09-10 23:11:11 +08:00
NOTICE
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

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.