incubator-nuttx/arch
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
..
arm armv7a/irq: enable fiq in tee, enable irq in ap 2024-08-21 01:36:32 +08:00
arm64 cmake:split the archive process to avoid parameter problems 2024-08-18 23:26:01 +08:00
avr types.h: fix windows build error 2024-08-14 22:36:57 +08:00
ceva toolchain/ghs: Fix SP_DSB warnings 2024-08-11 14:28:12 -03:00
dummy
hc types.h: fix windows build error 2024-08-14 22:36:57 +08:00
mips types.h: fix windows build error 2024-08-14 22:36:57 +08:00
misoc types.h: fix windows build error 2024-08-14 22:36:57 +08:00
or1k types.h: fix windows build error 2024-08-14 22:36:57 +08:00
renesas types.h: fix windows build error 2024-08-14 22:36:57 +08:00
risc-v arch/risc-v/esp32c3: fix AP password memcpy typo 2024-08-20 00:50:26 +02:00
sim nuttx/sim:By default, stack-use-after-return is not checked when enabling SIM_ASAN. 2024-08-19 19:54:17 +08:00
sparc types.h: fix windows build error 2024-08-14 22:36:57 +08:00
tricore types.h: fix windows build error 2024-08-14 22:36:57 +08:00
x86 types.h: fix windows build error 2024-08-14 22:36:57 +08:00
x86_64 cmake:split the archive process to avoid parameter problems 2024-08-18 23:26:01 +08:00
xtensa arch/xtensa/src/esp32s3/Kconfig|Make.defs|esp32s3_sdmmc.c, 2024-08-19 19:52:39 +08:00
z16 types.h: fix windows build error 2024-08-14 22:36:57 +08:00
z80 types.h: fix windows build error 2024-08-14 22:36:57 +08:00
CMakeLists.txt
Kconfig libc/x86_64: port string functions from bionic 2024-07-02 23:59:18 +08:00