summaryrefslogtreecommitdiff
path: root/arch/parisc/include/asm/dwarf.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2016-10-05 22:28:46 +0200
committerHelge Deller <deller@gmx.de>2016-10-05 22:54:40 +0200
commitf39cce654f9a1df331d7e1ba703f5f06a79f2159 (patch)
tree4d7e518b44cc6d9ace534bbf0af5a57caf520c8f /arch/parisc/include/asm/dwarf.h
parent2929e738002e7d43e0409fce9f968a67a7c9b0eb (diff)
parisc: Add cfi_startproc and cfi_endproc to assembly code
Add ENTRY_CFI() and ENDPROC_CFI() macros for dwarf debug info and convert assembly users to new macros. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include/asm/dwarf.h')
-rw-r--r--arch/parisc/include/asm/dwarf.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/dwarf.h b/arch/parisc/include/asm/dwarf.h
new file mode 100644
index 000000000000..8fe7d6b2cc42
--- /dev/null
+++ b/arch/parisc/include/asm/dwarf.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2016 Helge Deller <deller@gmx.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef _ASM_PARISC_DWARF_H
+#define _ASM_PARISC_DWARF_H
+
+#ifdef __ASSEMBLY__
+
+#define CFI_STARTPROC .cfi_startproc
+#define CFI_ENDPROC .cfi_endproc
+#define CFI_DEF_CFA .cfi_def_cfa
+#define CFI_REGISTER .cfi_register
+#define CFI_REL_OFFSET .cfi_rel_offset
+#define CFI_UNDEFINED .cfi_undefined
+
+#endif /* __ASSEMBLY__ */
+
+#endif /* _ASM_PARISC_DWARF_H */