summaryrefslogtreecommitdiff
path: root/arch/parisc/include/asm/linkage.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/linkage.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/linkage.h')
-rw-r--r--arch/parisc/include/asm/linkage.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/linkage.h b/arch/parisc/include/asm/linkage.h
index 0b19a7242d0c..67e6b433d399 100644
--- a/arch/parisc/include/asm/linkage.h
+++ b/arch/parisc/include/asm/linkage.h
@@ -1,6 +1,8 @@
#ifndef __ASM_PARISC_LINKAGE_H
#define __ASM_PARISC_LINKAGE_H
+#include <asm/dwarf.h>
+
#ifndef __ALIGN
#define __ALIGN .align 4
#define __ALIGN_STR ".align 4"
@@ -10,6 +12,8 @@
* In parisc assembly a semicolon marks a comment while a
* exclamation mark is used to separate independent lines.
*/
+#define ASM_NL !
+
#ifdef __ASSEMBLY__
#define ENTRY(name) \
@@ -26,6 +30,14 @@ name:
END(name)
#endif
+#define ENTRY_CFI(name) \
+ ENTRY(name) ASM_NL\
+ CFI_STARTPROC
+
+#define ENDPROC_CFI(name) \
+ ENDPROC(name) ASM_NL\
+ CFI_ENDPROC
+
#endif /* __ASSEMBLY__ */
#endif /* __ASM_PARISC_LINKAGE_H */