/* Change the overall interrupt controller "interrupt lock" The interrupt lock is a flag that provisionally disables all interrupts without affecting their status or their ability to be pended in the meanwhile  */
uint32_t hw_irq_ctrl_change_lock(uint32_t new_lock)
/* Change the overall interrupt controller "interrupt lock" The interrupt lock is a flag that provisionally disables all interrupts without affecting their status or their ability to be pended in the meanwhile  */
uint32_t hw_irq_ctrl_change_lock(uint32_t new_lock)
{
	uint32_t previous_lock = irqs_locked;
	irqs_locked = new_lock;
	if ((previous_lock == true) && (new_lock == false)) {
		if (irq_status != 0U) {
			nsif_cpu0_irq_raised_from_sw();
		}
	}
	return previous_lock;
}