summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/linkage.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/include/asm/linkage.h')
-rw-r--r--arch/riscv/include/asm/linkage.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/linkage.h b/arch/riscv/include/asm/linkage.h
new file mode 100644
index 0000000000..c6801294f3
--- /dev/null
+++ b/arch/riscv/include/asm/linkage.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (C) 2015 Regents of the University of California
+ */
+
+#ifndef _ASM_RISCV_LINKAGE_H
+#define _ASM_RISCV_LINKAGE_H
+
+#define __ALIGN .balign 4
+#define __ALIGN_STR ".balign 4"
+
+#define ENDPROC(name) \
+ .type name, %function; \
+ END(name)
+
+#endif /* _ASM_RISCV_LINKAGE_H */