From b217eb93142e25b683c97f1e230aa10c5bf1ed80 Mon Sep 17 00:00:00 2001
From: Ruslan Bukin <br@FreeBSD.org>
Date: Wed, 1 Jun 2016 14:03:13 +0000
Subject: [PATCH] Add a riscv define.

Submitted by:	Yukishige Shibata <y-shibat@mtd.biglobe.ne.jp>
---
 sys/dev/sym/sym_hipd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c
index 8e6fc60f1341..44cb78fb65ff 100644
--- a/sys/dev/sym/sym_hipd.c
+++ b/sys/dev/sym/sym_hipd.c
@@ -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