/* write secure auxiliary regs on behalf of normal mode  */
static int32_t arc_s_aux_write(uint32_t aux_reg, uint32_t val)
/* write secure auxiliary regs on behalf of normal mode  */
static int32_t arc_s_aux_write(uint32_t aux_reg, uint32_t val)
{
	if (aux_reg == _ARC_V2_AUX_IRQ_ACT) {
		val &= IRQ_PRIO_MASK;
		z_arc_v2_aux_reg_write(_ARC_V2_AUX_IRQ_ACT, val |
		(z_arc_v2_aux_reg_read(_ARC_V2_AUX_IRQ_ACT) &
			(~IRQ_PRIO_MASK)));
		return  0;
	}
	return -1;
}