Skip to content

Commit e217308

Browse files
committed
unbreak ctr build
1 parent 21f7142 commit e217308

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/gpulib/gpu_async.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@
3636
#define FAKECMD_SCREEN_CHANGE 0xdfu
3737
#define FAKECMD_BREAK 0xdeu
3838

39-
#if defined(__aarch64__) || defined(HAVE_ARMV6)
39+
#if defined(__aarch64__) || defined(HAVE_ARMV7)
4040
#define BARRIER() __asm__ __volatile__ ("dmb ishst" ::: "memory")
41+
#elif defined(HAVE_ARMV6)
42+
#define BARRIER() __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" :: "r"(0) : "memory")
4143
#else
4244
#define BARRIER() __asm__ __volatile__ ("" ::: "memory")
4345
#endif

0 commit comments

Comments
 (0)