Skip to content

Commit

Permalink
x86: Use {push,pop}{l,q}_cfi in more places
Browse files Browse the repository at this point in the history
... plus additionally introduce {push,pop}f{l,q}_cfi. All in the
hope that the code becomes better readable this way (it gets
quite a bit smaller in any case).

Signed-off-by: Jan Beulich <[email protected]>
Acked-by: Alexander van Heukelum <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Jan Beulich authored and Ingo Molnar committed Sep 3, 2010
1 parent a34107b commit df5d187
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 238 deletions.
20 changes: 20 additions & 0 deletions arch/x86/include/asm/dwarf2.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@
CFI_ADJUST_CFA_OFFSET -8
.endm

.macro pushfq_cfi
pushfq
CFI_ADJUST_CFA_OFFSET 8
.endm

.macro popfq_cfi
popfq
CFI_ADJUST_CFA_OFFSET -8
.endm

.macro movq_cfi reg offset=0
movq %\reg, \offset(%rsp)
CFI_REL_OFFSET \reg, \offset
Expand All @@ -109,6 +119,16 @@
CFI_ADJUST_CFA_OFFSET -4
.endm

.macro pushfl_cfi
pushfl
CFI_ADJUST_CFA_OFFSET 4
.endm

.macro popfl_cfi
popfl
CFI_ADJUST_CFA_OFFSET -4
.endm

.macro movl_cfi reg offset=0
movl %\reg, \offset(%esp)
CFI_REL_OFFSET \reg, \offset
Expand Down
Loading

0 comments on commit df5d187

Please sign in to comment.