barriers: Move __DSB() to the new API

Remove the arch-specific ARM-centric __DSB() macro and use the new
barrier API instead.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2023-05-02 11:24:50 +02:00 committed by Anas Nashif
commit cb11b2e84b
55 changed files with 157 additions and 110 deletions

View file

@ -11,6 +11,7 @@
#include <soc.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/irq.h>
#include <zephyr/sys/barrier.h>
#if defined(CONFIG_IPM_IMX_REV2)
#define DT_DRV_COMPAT nxp_imx_mu_rev2
#include "fsl_mu.h"
@ -155,7 +156,7 @@ static void imx_mu_isr(const struct device *dev)
* with errata 838869.
*/
#if (defined __CORTEX_M) && ((__CORTEX_M == 4U) || (__CORTEX_M == 7U))
__DSB();
barrier_dsync_fence_full();
#endif
}