07c370817c
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> |
||
---|---|---|
.. | ||
a1x | ||
am335x | ||
arm | ||
armv6-m | ||
armv7-a | ||
armv7-m | ||
armv7-r | ||
armv8-m | ||
armv8-r | ||
at32 | ||
c5471 | ||
cxd32xx | ||
cxd56xx | ||
dm320 | ||
efm32 | ||
eoss3 | ||
fvp-v8r-aarch32 | ||
gd32f4 | ||
goldfish | ||
imx1 | ||
imx6 | ||
imxrt | ||
kinetis | ||
kl | ||
lc823450 | ||
lpc17xx_40xx | ||
lpc31xx | ||
lpc43xx | ||
lpc54xx | ||
lpc214x | ||
lpc2378 | ||
max326xx | ||
moxart | ||
mps | ||
mx8mp | ||
nrf52 | ||
nrf53 | ||
nrf91 | ||
nuc1xx | ||
phy62xx | ||
qemu | ||
rp2040 | ||
s32k1xx | ||
s32k3xx | ||
sam34 | ||
sama5 | ||
samd2l2 | ||
samd5e5 | ||
samv7 | ||
stm32 | ||
stm32f0l0g0 | ||
stm32f7 | ||
stm32h7 | ||
stm32l4 | ||
stm32l5 | ||
stm32u5 | ||
stm32wb | ||
stm32wl5 | ||
str71x | ||
tiva | ||
tlsr82 | ||
tms570 | ||
xmc4 | ||
.gitignore | ||
arch.h | ||
elf.h | ||
inttypes.h | ||
irq.h | ||
limits.h | ||
setjmp.h | ||
spinlock.h | ||
stdarg.h | ||
syscall.h | ||
types.h |