How to enable or disable all interrupts in optee

We know that the functions to enable or disable interrupts in Linux Kernel are: local_irq_enable() and local_irq_disable(), so how to do it in optee os?
In optee, interrupts are turned on or off by using thread_mask_exceptions() and thread_unmask_exceptions().

The implementation of the thread_mask_exceptions() and thread_unmask_exceptions() functions is as follows:

insert image description here

#define ARM32_CPSR_F_SHIFT	U(6)
#define ARM32_CPSR_F		

Guess you like

Origin blog.csdn.net/weixin_42135087/article/details/132375496