|
81 | 81 |
|
82 | 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 | 84 | #endif /* _ASM_X86_DWARF2_H */
|
0 commit comments