objtool/LoongArch: Enable objtool to be built
[linux-2.6-block.git] / tools / objtool / arch / loongarch / include / arch / cfi_regs.h
diff --git a/tools/objtool/arch/loongarch/include/arch/cfi_regs.h b/tools/objtool/arch/loongarch/include/arch/cfi_regs.h
new file mode 100644 (file)
index 0000000..d183cc8
--- /dev/null
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+#ifndef _OBJTOOL_ARCH_CFI_REGS_H
+#define _OBJTOOL_ARCH_CFI_REGS_H
+
+#define CFI_RA         1
+#define CFI_SP         3
+#define CFI_A0         4
+#define CFI_FP         22
+#define CFI_S0         23
+#define CFI_S1         24
+#define CFI_S2         25
+#define CFI_S3         26
+#define CFI_S4         27
+#define CFI_S5         28
+#define CFI_S6         29
+#define CFI_S7         30
+#define CFI_S8         31
+#define CFI_NUM_REGS   32
+
+#define CFI_BP         CFI_FP
+
+#endif /* _OBJTOOL_ARCH_CFI_REGS_H */