Date: Wed, 1 Jun 2016 14:03:13 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301123 - head/sys/dev/sym Message-ID: <201606011403.u51E3DON077282@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: br Date: Wed Jun 1 14:03:13 2016 New Revision: 301123 URL: https://svnweb.freebsd.org/changeset/base/301123 Log: Add a riscv define. Submitted by: Yukishige Shibata <y-shibat@mtd.biglobe.ne.jp> Modified: head/sys/dev/sym/sym_hipd.c Modified: head/sys/dev/sym/sym_hipd.c ============================================================================== --- head/sys/dev/sym/sym_hipd.c Wed Jun 1 14:03:07 2016 (r301122) +++ head/sys/dev/sym/sym_hipd.c Wed Jun 1 14:03:13 2016 (r301123) @@ -138,6 +138,8 @@ typedef u_int32_t u32; #define MEMORY_BARRIER() dmb() #elif defined __aarch64__ #define MEMORY_BARRIER() dmb(sy) +#elif defined __riscv__ +#define MEMORY_BARRIER() fence() #else #error "Not supported platform" #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606011403.u51E3DON077282>