Date: Fri, 11 Jan 2013 00:03:19 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245275 - head/sys/dev/sym Message-ID: <201301110003.r0B03JaJ082187@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Fri Jan 11 00:03:19 2013 New Revision: 245275 URL: http://svnweb.freebsd.org/changeset/base/245275 Log: Use better arm memory barrier Modified: head/sys/dev/sym/sym_hipd.c Modified: head/sys/dev/sym/sym_hipd.c ============================================================================== --- head/sys/dev/sym/sym_hipd.c Thu Jan 10 23:56:50 2013 (r245274) +++ head/sys/dev/sym/sym_hipd.c Fri Jan 11 00:03:19 2013 (r245275) @@ -86,6 +86,7 @@ __FBSDID("$FreeBSD$"); #include <machine/bus.h> #include <machine/resource.h> +#include <machine/atomic.h> #ifdef __sparc64__ #include <dev/ofw/openfirm.h> @@ -136,7 +137,7 @@ typedef u_int32_t u32; #elif defined __sparc64__ #define MEMORY_BARRIER() __asm__ volatile("membar #Sync" : : : "memory") #elif defined __arm__ -#define MEMORY_BARRIER() __do_dmb() +#define MEMORY_BARRIER() dmb() #else #error "Not supported platform" #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301110003.r0B03JaJ082187>