]> begriffs open source - cmsis/commit
ARMCC: remove explicit DSB/DMB/ISB barriers
authorKevin Bracey <kevin.bracey@arm.com>
Thu, 17 Jan 2019 13:53:51 +0000 (15:53 +0200)
committerJonatan Antoni <jonatan.antoni@arm.com>
Tue, 30 Jul 2019 14:12:15 +0000 (16:12 +0200)
commit6c0cf7f4c6bdd01975b0b2163f75e3297a14398e
tree4a1e3430af7b86f520dfccbbb14a76fc86cffbb1
parent801e4dd0cbead275919770d787cd8358d609377c
ARMCC: remove explicit DSB/DMB/ISB barriers

ARMCC documentation states that the __dsb etc intrinsics act as
optimisation barriers. Even though that's a bit woolly about the exact
equivalent barrier intrinsic, take its word that it's doing the right
thing.

It seems safe to assume that it is, because the __schedule_barrier()
intrinsics here are not actually sufficient for DSB and DMB. They need a
__memory_barrier(). If no-one has seen any problems, then presumably
they already include one.

Change-Id: I5b72e8c11b52d8b14bfd3d906bcb178ab33425f3
CMSIS/Core/Include/cmsis_armcc.h
CMSIS/Core_A/Include/cmsis_armcc.h