/* Disable all interrupts on the CPU. 
The "interrupt disable state" is an attribute of a thread. Thus, if a fiber or task disables interrupts and subsequently invokes a kernel routine that causes the calling thread to block, the interrupt disable state will be restored when the thread is later rescheduled for execution. */
unsigned int posix_irq_lock(void)
/* Disable all interrupts on the CPU. 
The "interrupt disable state" is an attribute of a thread. Thus, if a fiber or task disables interrupts and subsequently invokes a kernel routine that causes the calling thread to block, the interrupt disable state will be restored when the thread is later rescheduled for execution. */
unsigned int posix_irq_lock(void)
{
	return hw_irq_ctrl_change_lock(CONFIG_NATIVE_SIMULATOR_MCU_N, true);
}