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:
parent
7cbb1f8b82
commit
cb11b2e84b
55 changed files with 157 additions and 110 deletions
|
@ -20,6 +20,7 @@
|
|||
#include <zephyr/drivers/pinctrl.h>
|
||||
#include <zephyr/drivers/clock_control.h>
|
||||
#include <zephyr/dt-bindings/clock/imx_ccm.h>
|
||||
#include <zephyr/sys/barrier.h>
|
||||
#include <soc.h>
|
||||
|
||||
#include "i2s_mcux_sai.h"
|
||||
|
@ -1114,7 +1115,7 @@ static void i2s_mcux_isr(void *arg)
|
|||
* might vector to incorrect interrupt
|
||||
*/
|
||||
#if defined __CORTEX_M && (__CORTEX_M == 4U)
|
||||
__DSB();
|
||||
barrier_dsync_fence_full();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue