dm36x: Implement interrupt disable.

This commit is contained in:
Kelvin Lawson
2014-10-24 22:49:19 +01:00
parent 99fcf9c9b7
commit 1999fd5ac1

View File

@@ -222,7 +222,7 @@ int archIntEnable (int int_vector, int enable)
{
/* Disable/mask the interrupt */
INTC_REG(((int_vector >= 32) ? DM36X_INTC_EINT1 : DM36X_INTC_EINT0))
|= (1 << ((int_vector >= 32) ? (int_vector - 32) : int_vector));
&= ~(1 << ((int_vector >= 32) ? (int_vector - 32) : int_vector));
}
CRITICAL_END();
status = ATOM_OK;