Message ID | 1407494906-18610-1-git-send-email-ankit.jindal@linaro.org |
---|---|
State | Accepted |
Commit | c35746580036ca9b6fc9ec172634dfab12237abb |
Headers | show |
On 2014-08-08 16:18, Ankit Jindal wrote: > This patch updates odp_sync_stores routine to add write memory barrier for > aarch64. > > Signed-off-by: Ankit Jindal <ankit.jindal@linaro.org> > Signed-off-by: Tushar Jagad <tushar.jagad@linaro.org> Reviewed-by: Anders Roxell <anders.roxell@linaro.org> > --- > include/odp_sync.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/odp_sync.h b/include/odp_sync.h > index c106c75..9cf4d46 100644 > --- a/include/odp_sync.h > +++ b/include/odp_sync.h > @@ -31,7 +31,7 @@ static inline void odp_sync_stores(void) > > __asm__ __volatile__ ("sfence\n" : : : "memory"); > > -#elif defined __arm__ > +#elif defined __arm__ || defined __aarch64__ > > __asm__ __volatile__ ("dmb st" : : : "memory"); > > -- > 1.7.9.5 > > > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/lng-odp
Merged, thanks! Maxim. On 08/08/2014 02:48 PM, Ankit Jindal wrote: > This patch updates odp_sync_stores routine to add write memory barrier for > aarch64. > > Signed-off-by: Ankit Jindal <ankit.jindal@linaro.org> > Signed-off-by: Tushar Jagad <tushar.jagad@linaro.org> > --- > include/odp_sync.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/odp_sync.h b/include/odp_sync.h > index c106c75..9cf4d46 100644 > --- a/include/odp_sync.h > +++ b/include/odp_sync.h > @@ -31,7 +31,7 @@ static inline void odp_sync_stores(void) > > __asm__ __volatile__ ("sfence\n" : : : "memory"); > > -#elif defined __arm__ > +#elif defined __arm__ || defined __aarch64__ > > __asm__ __volatile__ ("dmb st" : : : "memory"); >
diff --git a/include/odp_sync.h b/include/odp_sync.h index c106c75..9cf4d46 100644 --- a/include/odp_sync.h +++ b/include/odp_sync.h @@ -31,7 +31,7 @@ static inline void odp_sync_stores(void) __asm__ __volatile__ ("sfence\n" : : : "memory"); -#elif defined __arm__ +#elif defined __arm__ || defined __aarch64__ __asm__ __volatile__ ("dmb st" : : : "memory");