arch: armv7-a: Disable IRQ to make the A core

policy consistent with the M core for TEE

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2023-11-27 17:27:48 +08:00 committed by Alan Carvalho de Assis
parent 04e40182ad
commit 32d3dc4a9f

View File

@ -137,13 +137,18 @@ void up_initial_state(struct tcb_s *tcb)
cpsr |= (PSR_I_BIT | PSR_F_BIT);
#elif !defined(CONFIG_ARCH_TRUSTZONE_SECURE) && !defined(CONFIG_ARCH_HIPRI_INTERRUPT)
#elif defined(CONFIG_ARCH_TRUSTZONE_SECURE)
/* In tee, we need to disable the IRQ interrupt to make the A core
* policy consistent with the M core.
*/
cpsr |= PSR_I_BIT;
#elif !defined(CONFIG_ARCH_HIPRI_INTERRUPT)
/* Leave IRQs enabled (Also FIQs if CONFIG_ARCH_TRUSTZONE_SECURE or
* CONFIG_ARCH_HIPRI_INTERRUPT is selected)
*/
cpsr |= PSR_F_BIT;
#endif
#ifdef CONFIG_ARM_THUMB