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

@ -8,6 +8,7 @@
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/sys/barrier.h>
/**
*
@ -33,7 +34,7 @@ void z_arm_platform_init(void)
/* Invalidate instruction cache and flush branch target cache */
__set_ICIALLU(0);
__DSB();
barrier_dsync_fence_full();
__ISB();
L1C_EnableCaches();