Go to file
guoshichao 07c370817c armv7a/irq: enable fiq in tee, enable irq in ap
According to the current design on the armv7-a platform,
only fiq is processed in TEE, while irq and fiq are processed
in REE.
If we enable the irq function in TEE, when we process
some signal-related scenarios in TEE,
such as the ostest sighand testcase, this testcase will
call up_irq_enable() to enable irq interrupt in the
arm_sigdeliver() function. After the signal processing
logic is executed, irq will be disabled again.
During the interval of enabling irq, some external device
irq interrupts will be enabled, but these external device
irqs do not have corresponding handlers registered in TEE,
so an "unexpected irq isr exception" will be triggered.
Therefore, a better implementation is to keep the original
implementation of the up_irq_enable() function, that is,
to enable only fiq in TEE and to enable irq and fiq in REE.
Then  for vendor-specific requirements, such as the need to
briefly enable irq during the TEE initialization process
and then disable irq before starting APz in TEE, we directly
provide a separate implementation of enabling irq in the
vendor, without modifying the implementation of the public
up_enable_irq() function.

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2024-08-21 01:36:32 +08:00
.github ISSUE_TEMPLATE: Fixed incorrect links for issue forms 2024-08-05 15:35:48 -03:00
arch armv7a/irq: enable fiq in tee, enable irq in ap 2024-08-21 01:36:32 +08:00
audio Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
binfmt nuttx/boards:Uniform initialization format for init_array. 2024-08-19 19:48:32 +08:00
boards arm: Fix DS1307 initialization for common STM32 logic 2024-08-20 10:25:42 +08:00
cmake make/disassembly: generate disassembly file 2024-08-16 15:22:25 +08:00
crypto fix(Kconfig): spellcheck "randon" to "random" 2024-06-15 17:40:18 +08:00
Documentation Created pre-commit config file 2024-08-19 21:40:56 +02:00
drivers wifi_sim.c:fix compile warning 2024-08-20 14:46:15 +08:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fs procfs/mempool: fix did not remove when pool not enabled 2024-08-21 01:25:34 +08:00
graphics video/vnc: add vnc_fb_register 2024-04-12 17:42:49 +08:00
include assert: check COMPILE_TIME_ASSERT before define 2024-08-20 02:42:35 +08:00
libs netdb:netdb code support ffmpeg rtsp(getaddrinfo & getnameinfo) 2024-08-20 10:33:18 -03:00
mm mm/mempool: rename the mempool_alloc and mempool_free function 2024-08-18 19:46:54 +08:00
net icmpv6: Allow IPv6 address obtained by both 2024-08-21 01:33:28 +08:00
openamp libmetal/atomic: enable 64-bit atomic by toolchain builtin flags 2024-06-29 22:38:48 +08:00
pass1
sched arch: inline this_task to improve performence 2024-08-18 10:53:51 -03:00
syscall sem_open: return error code, sem returned by parameter 2024-06-06 02:40:50 +08:00
tools minidumpserver: fix parsing bug 2024-08-19 19:54:06 +08:00
video build: add initial cmake build system 2023-07-08 13:50:48 +08:00
wireless Remove the back slash from long literal string 2024-02-19 16:43:15 +01:00
.asf.yaml
.gitignore build: untracked these two types of files 2024-08-18 19:38:44 +08:00
.pre-commit-config.yaml Created pre-commit config file 2024-08-19 21:40:56 +02:00
.yamllint
AUTHORS AUTHORS: add Tomek CEDRO to the list 2023-03-07 14:15:55 +01:00
CMakeLists.txt cmake:bugfix fix CMake LTO build block 2024-08-15 18:01:50 +08:00
CONTRIBUTING.md Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
INVIOLABLES.md
Kconfig make/disassembly: generate disassembly file 2024-08-16 15:22:25 +08:00
LICENSE libc/x86_64: port string functions from bionic 2024-07-02 23:59:18 +08:00
Makefile tools:fix some error use of shell command in Windows native build 2022-11-06 16:41:49 +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.