summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Dooks <[email protected]>2023-05-05 09:02:05 +0100
committerLeo Yu-Chi Liang <[email protected]>2023-07-06 17:28:08 +0800
commit3c874711ba2d66361b6040df48814be666aa6b1d (patch)
treea19cffe499cdb413f4bd5428cf5072846dbd5f1d
parent7906155ed35ea584c3f8461d297426277d2d4416 (diff)
riscv: add generic link for <asm/atomic.h>
Add a link from <asm/atomic.h> to the generic one to allow things like ubifs to be built. This can be extended with riscv AMO ops at a later date. Signed-off-by: Ben Dooks <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
-rw-r--r--arch/riscv/include/asm/atomic.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/atomic.h b/arch/riscv/include/asm/atomic.h
new file mode 100644
index 00000000000..f541fb4daa3
--- /dev/null
+++ b/arch/riscv/include/asm/atomic.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2023 SiFive, Inc.
+ */
+
+#ifndef __RISCV_ATOMIC_H
+#define __RISCV_ATOMIC_H
+
+/* use the generic asm/atomic.h until we define a better one */
+
+#include <asm/system.h>
+#include <asm-generic/atomic.h>
+
+#endif