網(wǎng)站建設(shè)課程學(xué)習(xí)百度推廣中心
我們知道在Linux Kernel中開啟或關(guān)閉中斷的函數(shù)是:local_irq_enable()和local_irq_disable(), 那么在optee os中是怎樣做到的呢?
optee中通過使用thread_mask_exceptions()和thread_unmask_exceptions()來開啟或關(guān)閉中斷。
thread_mask_exceptions()和thread_unmask_exceptions()函數(shù)的實現(xiàn)如下所示:
#define ARM32_CPSR_F_SHIFT U(6)
#define ARM32_CPSR_F