nuttx/arch/arm/include
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
..
a1x
am335x
arm paging: Rename existing CONFIG_PAGING to CONFIG_LEGACY_PAGING 2024-03-05 09:45:49 +08:00
armv6-m toolchain/ghs: Fix green hills toolchain build Vela link error 2024-08-11 14:27:02 -03:00
armv7-a armv7a/irq: enable fiq in tee, enable irq in ap 2024-08-21 01:36:32 +08:00
armv7-m toolchain/ghs: Fix green hills toolchain build Vela link error 2024-08-11 14:27:02 -03:00
armv7-r toolchain/ghs: Fix green hills toolchain build Vela link error 2024-08-11 14:27:02 -03:00
armv8-m toolchain/ghs: Fix green hills toolchain build Vela link error 2024-08-11 14:27:02 -03:00
armv8-r toolchain/ghs: Fix green hills toolchain build Vela link error 2024-08-11 14:27:02 -03:00
at32
c5471
cxd32xx arch: cxd32xx: Add cxd32xx SoC support 2024-06-04 22:21:56 +08:00
cxd56xx arch: cxd56xx: Add new feature to use GNSS RAM 2024-02-05 05:53:51 -08:00
dm320
efm32
eoss3
fvp-v8r-aarch32
gd32f4
goldfish
imx1
imx6
imxrt
kinetis
kl
lc823450
lpc17xx_40xx
lpc31xx
lpc43xx
lpc54xx
lpc214x
lpc2378
max326xx
moxart
mps mps3:Support NuttX running on qemu cortex-m55 2024-04-26 18:42:35 -03:00
mx8mp
nrf52
nrf53
nrf91
nuc1xx
phy62xx
qemu
rp2040
s32k1xx
s32k3xx
sam34
sama5
samd2l2
samd5e5
samv7
stm32 stm32f401rc-rs485: Add rs-485 support 2024-01-07 17:15:59 -08:00
stm32f0l0g0
stm32f7
stm32h7 add stm32h755II chip 2024-05-17 10:16:39 -03:00
stm32l4
stm32l5
stm32u5
stm32wb
stm32wl5
str71x
tiva
tlsr82 toolchain/ghs: Fix green hills toolchain build Vela link error 2024-08-11 14:27:02 -03:00
tms570
xmc4
.gitignore
arch.h
elf.h
inttypes.h
irq.h toolchain/ghs: Fix zero used for undefined preprocessing identifier "NR_IRQS" warnings 2024-08-19 10:37:54 +08:00
limits.h
setjmp.h
spinlock.h toolchain/ghs: Fix SP_DSB warnings 2024-08-11 14:28:12 -03:00
stdarg.h arch/strarg: provide the stdarg implementation for greenhills compiler 2024-08-19 10:37:54 +08:00
syscall.h toolchain/ghs: fix the inline assembly code register alloc compile error 2024-08-11 14:28:12 -03:00
types.h types.h: fix windows build error 2024-08-14 22:36:57 +08:00