Module Name: src Committed By: riastradh Date: Sun Jul 17 22:02:23 UTC 2022
Modified Files: src/sys/external/bsd/common/include/asm: barrier.h Log Message: drm: Fix missing barrier definitions on arm. The definition will work on armv7; don't think we have any drmkms drivers on armv<7. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/external/bsd/common/include/asm/barrier.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/common/include/asm/barrier.h diff -u src/sys/external/bsd/common/include/asm/barrier.h:1.14 src/sys/external/bsd/common/include/asm/barrier.h:1.15 --- src/sys/external/bsd/common/include/asm/barrier.h:1.14 Sun Jul 17 18:45:48 2022 +++ src/sys/external/bsd/common/include/asm/barrier.h Sun Jul 17 22:02:23 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: barrier.h,v 1.14 2022/07/17 18:45:48 riastradh Exp $ */ +/* $NetBSD: barrier.h,v 1.15 2022/07/17 22:02:23 riastradh Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -54,6 +54,10 @@ #define mb() __asm __volatile ("dsb sy" ::: "memory") #define wmb() __asm __volatile ("dsb st" ::: "memory") #define rmb() __asm __volatile ("dsb ld" ::: "memory") +#elif defined(__arm__) +#define mb() __asm __volatile ("dsb" ::: "memory") +#define wmb() mb() +#define rmb() mb() #elif defined(__i386__) || defined(__x86_64__) #include <x86/cpufunc.h> #define mb() x86_mfence()