Supports inter-nuclear communication

This commit is contained in:
anguoyoula
2024-01-15 15:39:47 +08:00
parent 255d7464f7
commit 0923c6239a
8 changed files with 45 additions and 19 deletions
@@ -109,9 +109,13 @@ static int rzv2_mhu_callback (mhu_callback_args_t * p_args)
return METAL_IRQ_NOT_HANDLED; /* Invalid message arrived */
}
if (ipi.ipi_mutx_id[val] >= 0)
// if (ipi.ipi_mutx_id[val] >= 0)
// {
// KMutexAbandon(ipi.ipi_mutx_id[val]);
// }
if (ipi.ipi_mutx_id[val] != -1)
{
KMutexAbandon(ipi.ipi_mutx_id[val]);
ipi.ipi_mutx_id[val] = 1;
}
else
{