How to disable/enable interrupts for i.mx7D?

I am developing application for i.MX7D colibri module using visual Studio IDE in c++. I want to disable interrupts for some time during execution of highest priority thread in my application and then enable them again. Can you suggest how to do it for the module?

Colibri i.MX7D (Cortex A7 Core)
vs2008 (c++ Application)

In Windows Embedded Compact 7 (WEC7), managing hardware interrupts typically requires operating at the kernel level, not from user space.
Although it might be possible from kernel space, please note that disabling all interrupts can result in a complete system freeze.

Could you please provide more details about your case? We might be able to suggest an alternative solution.

Hi Alex,

Thanks for your reply. I am writing data to WEIM bus in the thread set to priority level of 10. So, I want that no interrupt can affect the writing process. Therefore, I trying to disable any maskable Interrupts before the writing operation & enable them again after it.

Hi @Manish ,
Is the issue solved or still need inputs?