optee中如何开启或关闭所有中断的

我们知道在Linux Kernel中开启或关闭中断的函数是:local_irq_enable()和local_irq_disable(), 那么在optee os中是怎样做到的呢?
optee中通过使用thread_mask_exceptions()和thread_unmask_exceptions()来开启或关闭中断。

thread_mask_exceptions()和thread_unmask_exceptions()函数的实现如下所示:

在这里插入图片描述

#define ARM32_CPSR_F_SHIFT	U(6)
#define ARM32_CPSR_F		

猜你喜欢

转载自blog.csdn.net/weixin_42135087/article/details/132375496