diff options
author | Andy Lutomirski <luto@kernel.org> | 2015-10-12 20:32:13 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-10-14 10:56:28 -0400 |
commit | af22aa7c766d50712b9afeca53e9e4208ce6284c (patch) | |
tree | 6926b945fd92b633157f5cff9e42d56e5054ab2c | |
parent | 893a3ec27e1dae62a904f78d53244001979748a6 (diff) |
x86/asm: Remove the xyz_cfi macros from dwarf2.h
They are currently unused, and I don't think that anyone was
ever particularly happy with them. They had the unfortunate
property that they made it easy to CFI-annotate things without
thinking about them -- when pushing, do you want to just update
the CFA offset, or do you also want to update the saved location
of the register being pushed?
Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1447bfbd10bb268b4593b32534ecefa1f4df287e.1444696194.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/include/asm/dwarf2.h | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/arch/x86/include/asm/dwarf2.h b/arch/x86/include/asm/dwarf2.h index 09133ba032b3..b7a1ab865d68 100644 --- a/arch/x86/include/asm/dwarf2.h +++ b/arch/x86/include/asm/dwarf2.h | |||
@@ -81,97 +81,4 @@ | |||
81 | 81 | ||
82 | #endif | 82 | #endif |
83 | 83 | ||
84 | /* | ||
85 | * An attempt to make CFI annotations more or less | ||
86 | * correct and shorter. It is implied that you know | ||
87 | * what you're doing if you use them. | ||
88 | */ | ||
89 | #ifdef __ASSEMBLY__ | ||
90 | #ifdef CONFIG_X86_64 | ||
91 | .macro pushq_cfi reg | ||
92 | pushq \reg | ||
93 | CFI_ADJUST_CFA_OFFSET 8 | ||
94 | .endm | ||
95 | |||
96 | .macro pushq_cfi_reg reg | ||
97 | pushq %\reg | ||
98 | CFI_ADJUST_CFA_OFFSET 8 | ||
99 | CFI_REL_OFFSET \reg, 0 | ||
100 | .endm | ||
101 | |||
102 | .macro popq_cfi reg | ||
103 | popq \reg | ||
104 | CFI_ADJUST_CFA_OFFSET -8 | ||
105 | .endm | ||
106 | |||
107 | .macro popq_cfi_reg reg | ||
108 | popq %\reg | ||
109 | CFI_ADJUST_CFA_OFFSET -8 | ||
110 | CFI_RESTORE \reg | ||
111 | .endm | ||
112 | |||
113 | .macro pushfq_cfi | ||
114 | pushfq | ||
115 | CFI_ADJUST_CFA_OFFSET 8 | ||
116 | .endm | ||
117 | |||
118 | .macro popfq_cfi | ||
119 | popfq | ||
120 | CFI_ADJUST_CFA_OFFSET -8 | ||
121 | .endm | ||
122 | |||
123 | .macro movq_cfi reg offset=0 | ||
124 | movq %\reg, \offset(%rsp) | ||
125 | CFI_REL_OFFSET \reg, \offset | ||
126 | .endm | ||
127 | |||
128 | .macro movq_cfi_restore offset reg | ||
129 | movq \offset(%rsp), %\reg | ||
130 | CFI_RESTORE \reg | ||
131 | .endm | ||
132 | #else /*!CONFIG_X86_64*/ | ||
133 | .macro pushl_cfi reg | ||
134 | pushl \reg | ||
135 | CFI_ADJUST_CFA_OFFSET 4 | ||
136 | .endm | ||
137 | |||
138 | .macro pushl_cfi_reg reg | ||
139 | pushl %\reg | ||
140 | CFI_ADJUST_CFA_OFFSET 4 | ||
141 | CFI_REL_OFFSET \reg, 0 | ||
142 | .endm | ||
143 | |||
144 | .macro popl_cfi reg | ||
145 | popl \reg | ||
146 | CFI_ADJUST_CFA_OFFSET -4 | ||
147 | .endm | ||
148 | |||
149 | .macro popl_cfi_reg reg | ||
150 | popl %\reg | ||
151 | CFI_ADJUST_CFA_OFFSET -4 | ||
152 | CFI_RESTORE \reg | ||
153 | .endm | ||
154 | |||
155 | .macro pushfl_cfi | ||
156 | pushfl | ||
157 | CFI_ADJUST_CFA_OFFSET 4 | ||
158 | .endm | ||
159 | |||
160 | .macro popfl_cfi | ||
161 | popfl | ||
162 | CFI_ADJUST_CFA_OFFSET -4 | ||
163 | .endm | ||
164 | |||
165 | .macro movl_cfi reg offset=0 | ||
166 | movl %\reg, \offset(%esp) | ||
167 | CFI_REL_OFFSET \reg, \offset | ||
168 | .endm | ||
169 | |||
170 | .macro movl_cfi_restore offset reg | ||
171 | movl \offset(%esp), %\reg | ||
172 | CFI_RESTORE \reg | ||
173 | .endm | ||
174 | #endif /*!CONFIG_X86_64*/ | ||
175 | #endif /*__ASSEMBLY__*/ | ||
176 | |||
177 | #endif /* _ASM_X86_DWARF2_H */ | 84 | #endif /* _ASM_X86_DWARF2_H */ |