diff options
Diffstat (limited to 'include/asm-x86/dwarf2_64.h')
-rw-r--r-- | include/asm-x86/dwarf2_64.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/include/asm-x86/dwarf2_64.h b/include/asm-x86/dwarf2_64.h new file mode 100644 index 000000000000..eedc08526b0b --- /dev/null +++ b/include/asm-x86/dwarf2_64.h | |||
@@ -0,0 +1,57 @@ | |||
1 | #ifndef _DWARF2_H | ||
2 | #define _DWARF2_H 1 | ||
3 | |||
4 | |||
5 | #ifndef __ASSEMBLY__ | ||
6 | #warning "asm/dwarf2.h should be only included in pure assembly files" | ||
7 | #endif | ||
8 | |||
9 | /* | ||
10 | Macros for dwarf2 CFI unwind table entries. | ||
11 | See "as.info" for details on these pseudo ops. Unfortunately | ||
12 | they are only supported in very new binutils, so define them | ||
13 | away for older version. | ||
14 | */ | ||
15 | |||
16 | #ifdef CONFIG_AS_CFI | ||
17 | |||
18 | #define CFI_STARTPROC .cfi_startproc | ||
19 | #define CFI_ENDPROC .cfi_endproc | ||
20 | #define CFI_DEF_CFA .cfi_def_cfa | ||
21 | #define CFI_DEF_CFA_REGISTER .cfi_def_cfa_register | ||
22 | #define CFI_DEF_CFA_OFFSET .cfi_def_cfa_offset | ||
23 | #define CFI_ADJUST_CFA_OFFSET .cfi_adjust_cfa_offset | ||
24 | #define CFI_OFFSET .cfi_offset | ||
25 | #define CFI_REL_OFFSET .cfi_rel_offset | ||
26 | #define CFI_REGISTER .cfi_register | ||
27 | #define CFI_RESTORE .cfi_restore | ||
28 | #define CFI_REMEMBER_STATE .cfi_remember_state | ||
29 | #define CFI_RESTORE_STATE .cfi_restore_state | ||
30 | #define CFI_UNDEFINED .cfi_undefined | ||
31 | #ifdef CONFIG_AS_CFI_SIGNAL_FRAME | ||
32 | #define CFI_SIGNAL_FRAME .cfi_signal_frame | ||
33 | #else | ||
34 | #define CFI_SIGNAL_FRAME | ||
35 | #endif | ||
36 | |||
37 | #else | ||
38 | |||
39 | /* use assembler line comment character # to ignore the arguments. */ | ||
40 | #define CFI_STARTPROC # | ||
41 | #define CFI_ENDPROC # | ||
42 | #define CFI_DEF_CFA # | ||
43 | #define CFI_DEF_CFA_REGISTER # | ||
44 | #define CFI_DEF_CFA_OFFSET # | ||
45 | #define CFI_ADJUST_CFA_OFFSET # | ||
46 | #define CFI_OFFSET # | ||
47 | #define CFI_REL_OFFSET # | ||
48 | #define CFI_REGISTER # | ||
49 | #define CFI_RESTORE # | ||
50 | #define CFI_REMEMBER_STATE # | ||
51 | #define CFI_RESTORE_STATE # | ||
52 | #define CFI_UNDEFINED # | ||
53 | #define CFI_SIGNAL_FRAME # | ||
54 | |||
55 | #endif | ||
56 | |||
57 | #endif | ||