summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/bitsperlong.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/include/asm/bitsperlong.h')
-rw-r--r--arch/riscv/include/asm/bitsperlong.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/bitsperlong.h b/arch/riscv/include/asm/bitsperlong.h
new file mode 100644
index 0000000000..4641e7e485
--- /dev/null
+++ b/arch/riscv/include/asm/bitsperlong.h
@@ -0,0 +1,10 @@
+#ifndef __ASM_BITSPERLONG_H
+#define __ASM_BITSPERLONG_H
+
+#ifdef __riscv64
+#define BITS_PER_LONG 64
+#else
+#define BITS_PER_LONG 32
+#endif
+
+#endif /* __ASM_BITSPERLONG_H */